Expand description
Bitcoin amounts.
This module mainly introduces the Amount
and SignedAmount
types.
We refer to the documentation on the types for more information.
Modules§
- serde
serde
This module adds serde serialization and deserialization support for Amounts.
Structs§
- An amount.
- A helper/builder that displays amount with specified settings.
- Error returned when the input string is too large.
- Error returned when the input contains an invalid character.
- Error returned when the denomination is empty.
- Error returned when digits were expected in the input but there were none.
- Error returned when a parsed amount is too big or too small.
- Error returned when parsing a possibly confusing denomination.
- A signed amount.
- Error returned when the input string has higher precision than satoshis.
- Error returned when parsing an unknown denomination.
Enums§
- A set of denominations in which amounts can be expressed.
- An error during amount parsing.
- An error during amount parsing.
- An error during amount parsing amount with denomination.
Traits§
- Calculates the sum over the iterator using checked arithmetic.