Enum lightning_invoice::SiPrefix [−][src]
pub enum SiPrefix {
Milli,
Micro,
Nano,
Pico,
}
Expand description
SI prefixes for the human readable part
Variants
Milli
10^-3
Micro
10^-6
Nano
10^-9
Pico
10^-12
Implementations
Returns the multiplier to go from a BTC value to picoBTC implied by this SiPrefix. This is effectively 10^12 * the prefix multiplier
Returns all enum variants of SiPrefix
sorted in descending order of their associated
multiplier.
(C-not exported) As we don’t yet support a slice of enums, and also because this function isn’t the most critical to expose.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SiPrefix
impl UnwindSafe for SiPrefix
Blanket Implementations
Mutably borrows from an owned value. Read more