pub struct BaseAtomsPerBaseUnit { /* private fields */ }
Implementations§
Source§impl BaseAtomsPerBaseUnit
impl BaseAtomsPerBaseUnit
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 Add for BaseAtomsPerBaseUnit
impl Add for BaseAtomsPerBaseUnit
Source§impl AddAssign for BaseAtomsPerBaseUnit
impl AddAssign for BaseAtomsPerBaseUnit
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl Clone for BaseAtomsPerBaseUnit
impl Clone for BaseAtomsPerBaseUnit
Source§fn clone(&self) -> BaseAtomsPerBaseUnit
fn clone(&self) -> BaseAtomsPerBaseUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseAtomsPerBaseUnit
impl Debug for BaseAtomsPerBaseUnit
Source§impl Default for BaseAtomsPerBaseUnit
impl Default for BaseAtomsPerBaseUnit
Source§impl Display for BaseAtomsPerBaseUnit
impl Display for BaseAtomsPerBaseUnit
Source§impl Div<BaseAtomsPerBaseLot> for BaseAtomsPerBaseUnit
impl Div<BaseAtomsPerBaseLot> for BaseAtomsPerBaseUnit
Source§type Output = BaseLotsPerBaseUnit
type Output = BaseLotsPerBaseUnit
The resulting type after applying the
/
operator.Source§fn div(self, other: BaseAtomsPerBaseLot) -> BaseLotsPerBaseUnit
fn div(self, other: BaseAtomsPerBaseLot) -> BaseLotsPerBaseUnit
Performs the
/
operation. Read moreSource§impl Div<BaseLotsPerBaseUnit> for BaseAtomsPerBaseUnit
impl Div<BaseLotsPerBaseUnit> for BaseAtomsPerBaseUnit
Source§type Output = BaseAtomsPerBaseLot
type Output = BaseAtomsPerBaseLot
The resulting type after applying the
/
operator.Source§fn div(self, other: BaseLotsPerBaseUnit) -> BaseAtomsPerBaseLot
fn div(self, other: BaseLotsPerBaseUnit) -> BaseAtomsPerBaseLot
Performs the
/
operation. Read moreSource§impl From<BaseAtomsPerBaseUnit> for f64
impl From<BaseAtomsPerBaseUnit> for f64
Source§fn from(x: BaseAtomsPerBaseUnit) -> f64
fn from(x: BaseAtomsPerBaseUnit) -> f64
Converts to this type from the input type.
Source§impl From<BaseAtomsPerBaseUnit> for u64
impl From<BaseAtomsPerBaseUnit> for u64
Source§fn from(x: BaseAtomsPerBaseUnit) -> u64
fn from(x: BaseAtomsPerBaseUnit) -> u64
Converts to this type from the input type.
Source§impl Mul for BaseAtomsPerBaseUnit
impl Mul for BaseAtomsPerBaseUnit
Source§impl Ord for BaseAtomsPerBaseUnit
impl Ord for BaseAtomsPerBaseUnit
Source§fn cmp(&self, other: &BaseAtomsPerBaseUnit) -> Ordering
fn cmp(&self, other: &BaseAtomsPerBaseUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<BaseAtomsPerBaseUnit> for u64
impl PartialEq<BaseAtomsPerBaseUnit> for u64
Source§impl PartialEq<u64> for BaseAtomsPerBaseUnit
impl PartialEq<u64> for BaseAtomsPerBaseUnit
Source§impl PartialEq for BaseAtomsPerBaseUnit
impl PartialEq for BaseAtomsPerBaseUnit
Source§impl PartialOrd for BaseAtomsPerBaseUnit
impl PartialOrd for BaseAtomsPerBaseUnit
Source§impl Sub for BaseAtomsPerBaseUnit
impl Sub for BaseAtomsPerBaseUnit
Source§impl SubAssign for BaseAtomsPerBaseUnit
impl SubAssign for BaseAtomsPerBaseUnit
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreSource§impl Sum for BaseAtomsPerBaseUnit
impl Sum for BaseAtomsPerBaseUnit
Source§impl WrapperU64 for BaseAtomsPerBaseUnit
impl WrapperU64 for BaseAtomsPerBaseUnit
impl Copy for BaseAtomsPerBaseUnit
impl Eq for BaseAtomsPerBaseUnit
impl Pod for BaseAtomsPerBaseUnit
Auto Trait Implementations§
impl Freeze for BaseAtomsPerBaseUnit
impl RefUnwindSafe for BaseAtomsPerBaseUnit
impl Send for BaseAtomsPerBaseUnit
impl Sync for BaseAtomsPerBaseUnit
impl Unpin for BaseAtomsPerBaseUnit
impl UnwindSafe for BaseAtomsPerBaseUnit
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more