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
FeeRateand assoctiated features. - locktime
- Provides absolute and relative locktimes.
- parse
- Parsing utilities.
- weight
- Implements
Weightand associated features.
Macros§
- impl_
parse_ str - Implements standard parsing traits for
$typeby calling into$inner_fn. - impl_
parse_ str_ from_ int_ infallible - Implements
FromStrandTryFrom<{&str, String, Box<str>}> for $tousingparse::int, mapping the output using infallible conversion functionfn. - impl_
tryfrom_ str - Implements
TryFrom<$from> for $to. - impl_
tryfrom_ str_ from_ int_ infallible - Implements
TryFrom<$from> for $tousingparse::int, mapping the output using infallible conversion functionfn.
Structs§
- Amount
- Amount
- FeeRate
- Represents fee rate.
- Signed
Amount - SignedAmount
- Weight
- Represents block weight - the weight of a transaction or block.