Struct ic_ledger_types::Tokens
source · pub struct Tokens { /* private fields */ }
Expand description
A type for representing amounts of Tokens.
§Panics
- Arithmetics (addition, subtraction) on the Tokens type panics if the underlying type overflows.
Implementations§
Trait Implementations§
source§impl AddAssign for Tokens
impl AddAssign for Tokens
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl CandidType for Tokens
impl CandidType for Tokens
source§impl<'de> Deserialize<'de> for Tokens
impl<'de> Deserialize<'de> for Tokens
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Tokens
impl Ord for Tokens
source§impl PartialEq for Tokens
impl PartialEq for Tokens
source§impl PartialOrd for Tokens
impl PartialOrd for Tokens
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign for Tokens
impl SubAssign for Tokens
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Tokens
impl Eq for Tokens
impl StructuralPartialEq for Tokens
Auto Trait Implementations§
impl RefUnwindSafe for Tokens
impl Send for Tokens
impl Sync for Tokens
impl Unpin for Tokens
impl UnwindSafe for Tokens
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more