Trait bitcoin_amount::IntoBtc[][src]

pub trait IntoBtc {
    fn into_btc(self) -> Amount;
}

Trait to mark types as convertable into Amounts.

Types that implement this trait should perform the conversion from BTC amounts to satoshis e.g. an f64 performs the conversion of "0.00000025" to 25 satoshis. See Amount::from_sat.

Required Methods

Performs the conversion.

Implementations on Foreign Types

impl<'a> IntoBtc for &'a f64
[src]

impl IntoBtc for f64
[src]

Implementors