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;
alloc
Modules§
- Bitcoin amounts.
- fee_rate
alloc
ImplementsFeeRate
and assoctiated features. - locktime
alloc
Provides absolute and relative locktimes. - parse
alloc
Parsing utilities. - weight
alloc
ImplementsWeight
and associated features.
Macros§
- impl_parse_str
alloc
Implements standard parsing traits for$type
by calling into$inner_fn
. - Implements
FromStr
andTryFrom<{&str, String, Box<str>}> for $to
usingparse::int
, mapping the output using infallible conversion functionfn
. - impl_tryfrom_str
alloc
ImplementsTryFrom<$from> for $to
. - Implements
TryFrom<$from> for $to
usingparse::int
, mapping the output using infallible conversion functionfn
.