[][src]Struct nimiq_primitives::coin::Coin

pub struct Coin(_);

Methods

impl Coin[src]

impl Coin[src]

pub fn checked_add(self, rhs: Coin) -> Option<Coin>[src]

pub fn checked_sub(self, rhs: Coin) -> Option<Coin>[src]

pub fn checked_factor(self, times: u64) -> Option<Coin>[src]

Trait Implementations

impl From<Coin> for u64[src]

impl Clone for Coin[src]

impl Copy for Coin[src]

impl Default for Coin[src]

impl Eq for Coin[src]

impl Ord for Coin[src]

impl PartialEq<Coin> for Coin[src]

impl PartialOrd<Coin> for Coin[src]

impl Display for Coin[src]

impl Debug for Coin[src]

impl Sub<Coin> for Coin[src]

type Output = Coin

The resulting type after applying the - operator.

impl FromStr for Coin[src]

type Err = CoinParseError

The associated error which can be returned from parsing.

impl Add<Coin> for Coin[src]

type Output = Coin

The resulting type after applying the + operator.

impl StructuralPartialEq for Coin[src]

impl StructuralEq for Coin[src]

impl Deserialize for Coin[src]

impl Serialize for Coin[src]

Auto Trait Implementations

impl Send for Coin

impl Sync for Coin

impl Unpin for Coin

impl UnwindSafe for Coin

impl RefUnwindSafe for Coin

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T