[][src]Struct wagyu_zcash::amount::ZcashAmount

pub struct ZcashAmount(pub i64);

Represents the amount of ZEC in zatoshis

Methods

impl ZcashAmount[src]

pub const ZERO: ZcashAmount[src]

The zero amount.

pub const ONE_ZAT: ZcashAmount[src]

Exactly one zatoshi.

pub const ONE_ZEC: ZcashAmount[src]

Exactly one ZEC.

pub fn from_zatoshi(zatoshis: i64) -> Result<Self, AmountError>[src]

pub fn from_zec(zec_value: i64) -> Result<Self, AmountError>[src]

pub fn add(self, b: Self) -> Result<Self, AmountError>[src]

pub fn sub(self, b: Self) -> Result<Self, AmountError>[src]

Trait Implementations

impl Amount for ZcashAmount[src]

impl Clone for ZcashAmount[src]

impl Copy for ZcashAmount[src]

impl Debug for ZcashAmount[src]

impl Display for ZcashAmount[src]

impl Eq for ZcashAmount[src]

impl Hash for ZcashAmount[src]

impl Ord for ZcashAmount[src]

impl PartialEq<ZcashAmount> for ZcashAmount[src]

impl PartialOrd<ZcashAmount> for ZcashAmount[src]

impl Serialize for ZcashAmount[src]

impl StructuralEq for ZcashAmount[src]

impl StructuralPartialEq for ZcashAmount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,