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§
- Amount
- An amount.
- Display
- A helper/builder that displays amount with specified settings.
- Input
TooLarge Error - Error returned when the input string is too large.
- Invalid
Character Error - Error returned when the input contains an invalid character.
- Missing
Denomination Error - Error returned when the denomination is empty.
- Missing
Digits Error - Error returned when digits were expected in the input but there were none.
- OutOf
Range Error - Error returned when a parsed amount is too big or too small.
- Possibly
Confusing Denomination Error - Error returned when parsing a possibly confusing denomination.
- Signed
Amount - A signed amount.
- TooPrecise
Error - Error returned when the input string has higher precision than satoshis.
- Unknown
Denomination Error - Error returned when parsing an unknown denomination.
Enums§
- Denomination
- A set of denominations in which amounts can be expressed.
- Parse
Amount Error - An error during amount parsing.
- Parse
Denomination Error - An error during amount parsing.
- Parse
Error - An error during amount parsing amount with denomination.
Traits§
- Checked
Sum - Calculates the sum over the iterator using checked arithmetic.