Struct concordium_std::Amount [−][src]
#[repr(transparent)]pub struct Amount {
pub micro_ccd: u64,
}Expand description
The type of amounts on the chain
Fields
micro_ccd: u64Implementations
Create amount from a number of microCCD
Add a number of micro CCD to an amount
Checked addition. Adds another amount and return None if overflow occurred
Subtract a number of micro CCD to an amount
Subtract a number of CCD to an amount
Trait Implementations
Performs the += operation. Read more
Parse from string in CCD units. The input string must be of the form
n[.m] where n and m are both digits. The notation [.m] indicates
that that part is optional.
- if
nstarts with 0 then it must be 0l mcan have at most 6 digits, and must have at least 1- both
nandmmust be non-negative.
Performs the *= operation. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Performs the %= operation. Read more
Performs the -= operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Amount
impl UnwindSafe for Amount
Blanket Implementations
Mutably borrows from an owned value. Read more
