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