[−][src]Enum lightning_invoice::SiPrefix
SI prefixes for the human readable part
Variants
10^-3
10^-6
10^-9
10^-12
Implementations
impl SiPrefix
[src]
pub fn multiplier(&self) -> u64
[src]
Returns the multiplier to go from a BTC value to picoBTC implied by this SiPrefix. This is effectively 10^12 * the prefix multiplier
pub fn values_desc() -> &'static [SiPrefix]ⓘ
[src]
Returns all enum variants of SiPrefix
sorted in descending order of their associated
multiplier.
Trait Implementations
impl Clone for SiPrefix
[src]
impl Copy for SiPrefix
[src]
impl Debug for SiPrefix
[src]
impl Display for SiPrefix
[src]
impl Eq for SiPrefix
[src]
impl FromStr for SiPrefix
[src]
type Err = ParseError
The associated error which can be returned from parsing.
pub fn from_str(currency_prefix: &str) -> Result<Self, ParseError>
[src]
impl PartialEq<SiPrefix> for SiPrefix
[src]
pub fn eq(&self, other: &SiPrefix) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SiPrefix
[src]
impl StructuralPartialEq for SiPrefix
[src]
Auto Trait Implementations
impl RefUnwindSafe for SiPrefix
[src]
impl Send for SiPrefix
[src]
impl Sync for SiPrefix
[src]
impl Unpin for SiPrefix
[src]
impl UnwindSafe for SiPrefix
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,