[][src]Struct godcoin::asset::Asset

pub struct Asset {
    pub amount: i64,
}

Fields

amount: i64

Methods

impl Asset[src]

pub const fn new(amount: i64) -> Asset[src]

pub fn checked_add(self, other: Self) -> Option<Self>[src]

pub fn checked_sub(self, other: Self) -> Option<Self>[src]

pub fn checked_mul(self, other: Self) -> Option<Self>[src]

pub fn checked_div(self, other: Self) -> Option<Self>[src]

pub fn checked_pow(self, num: u16) -> Option<Self>[src]

Trait Implementations

impl Clone for Asset[src]

impl Copy for Asset[src]

impl Default for Asset[src]

impl PartialEq<Asset> for Asset[src]

impl PartialOrd<Asset> for Asset[src]

impl ToString for Asset[src]

impl Debug for Asset[src]

impl FromStr for Asset[src]

type Err = AssetError

The associated error which can be returned from parsing.

impl StructuralPartialEq for Asset[src]

Auto Trait Implementations

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

impl RefUnwindSafe for Asset

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 = !

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]