Crate bitcoin_units

Source
Expand description

Rust Bitcoin units library

This library provides basic types used by the Rust Bitcoin ecosystem.

Re-exports§

pub extern crate serde;
pub use self::amount::ParseAmountError;
pub use self::parse::ParseIntError;

Modules§

amount
Bitcoin amounts.
fee_rate
Implements FeeRate and assoctiated features.
locktime
Provides absolute and relative locktimes.
parse
Parsing utilities.
weight
Implements Weight and associated features.

Macros§

impl_parse_str
Implements standard parsing traits for $type by calling into $inner_fn.
impl_parse_str_from_int_infallible
Implements FromStr and TryFrom<{&str, String, Box<str>}> for $to using parse::int, mapping the output using infallible conversion function fn.
impl_tryfrom_str
Implements TryFrom<$from> for $to.
impl_tryfrom_str_from_int_infallible
Implements TryFrom<$from> for $to using parse::int, mapping the output using infallible conversion function fn.

Structs§

Amount
Amount
FeeRate
Represents fee rate.
SignedAmount
SignedAmount
Weight
Represents block weight - the weight of a transaction or block.