Expand description
Rust Bitcoin units library
This library provides basic types used by the Rust Bitcoin ecosystem.
Modules§
- Bitcoin amounts.
- block
alloc
Block height and interval types. - 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
.
Structs§
- An amount.
- Block
Height alloc
The block height, zero denotes the genesis block. - Block
Interval alloc
The block interval. - FeeRate
alloc
Represents fee rate. - A signed amount.
- Weight
alloc
Represents block weight - the weight of a transaction or block.