Struct phoenix::quantities::BaseAtoms
source · #[repr(transparent)]pub struct BaseAtoms { /* private fields */ }Implementations§
source§impl BaseAtoms
impl BaseAtoms
pub const ZERO: Self = _
pub const ONE: Self = _
pub const MAX: Self = _
pub const MIN: Self = _
pub fn as_u128(&self) -> u128
pub fn saturating_sub(self, other: Self) -> Self
pub fn unchecked_div<Divisor: WrapperU64, Quotient: WrapperU64>( self, other: Divisor ) -> Quotient
Trait Implementations§
source§impl AddAssign<BaseAtoms> for BaseAtoms
impl AddAssign<BaseAtoms> for BaseAtoms
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl Div<BaseAtomsPerBaseLot> for BaseAtoms
impl Div<BaseAtomsPerBaseLot> for BaseAtoms
source§impl Div<BaseLots> for BaseAtoms
impl Div<BaseLots> for BaseAtoms
§type Output = BaseAtomsPerBaseLot
type Output = BaseAtomsPerBaseLot
The resulting type after applying the
/ operator.source§impl Ord for BaseAtoms
impl Ord for BaseAtoms
source§impl PartialEq<BaseAtoms> for BaseAtoms
impl PartialEq<BaseAtoms> for BaseAtoms
source§impl PartialEq<BaseAtoms> for u64
impl PartialEq<BaseAtoms> for u64
source§impl PartialOrd<BaseAtoms> for BaseAtoms
impl PartialOrd<BaseAtoms> for BaseAtoms
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<BaseAtoms> for BaseAtoms
impl SubAssign<BaseAtoms> for BaseAtoms
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for BaseAtoms
impl Eq for BaseAtoms
impl Pod for BaseAtoms
Auto Trait Implementations§
impl RefUnwindSafe for BaseAtoms
impl Send for BaseAtoms
impl Sync for BaseAtoms
impl Unpin for BaseAtoms
impl UnwindSafe for BaseAtoms
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.