Expand description
Rust Bitcoin units library
This library provides basic types used by the Rust Bitcoin ecosystem.
Modules§
- amount
- Bitcoin amounts.
- block
alloc - Block height and interval types.
- fee_
rate alloc - Implements
FeeRateand assoctiated features. - locktime
alloc - Provides absolute and relative locktimes.
- parse
alloc - Parsing utilities.
- weight
alloc - Implements
Weightand associated features.
Macros§
- impl_
parse_ str alloc - Implements standard parsing traits for
$typeby calling into$inner_fn. - impl_
parse_ str_ from_ int_ infallible alloc - Implements
FromStrandTryFrom<{&str, String, Box<str>}> for $tousingparse::int, mapping the output using infallible conversion functionfn. - impl_
tryfrom_ str alloc - Implements
TryFrom<$from> for $to. - impl_
tryfrom_ str_ from_ int_ infallible alloc - Implements
TryFrom<$from> for $tousingparse::int, mapping the output using infallible conversion functionfn.
Structs§
- Amount
- An amount.
- Block
Height alloc - The block height, zero denotes the genesis block.
- Block
Interval alloc - The block interval.
- FeeRate
alloc - Represents fee rate.
- Signed
Amount - A signed amount.
- Weight
alloc - Represents block weight - the weight of a transaction or block.