pub struct BaseUnits { /* private fields */ }
Implementations§
Source§impl BaseUnits
impl BaseUnits
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 for BaseUnits
impl AddAssign for BaseUnits
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl Div<BaseUnits> for BaseLots
impl Div<BaseUnits> for BaseLots
Source§type Output = BaseLotsPerBaseUnit
type Output = BaseLotsPerBaseUnit
The resulting type after applying the
/
operator.Source§impl Mul<BaseLotsPerBaseUnit> for BaseUnits
impl Mul<BaseLotsPerBaseUnit> for BaseUnits
Source§impl Mul<BaseUnits> for BaseLotsPerBaseUnit
impl Mul<BaseUnits> for BaseLotsPerBaseUnit
Source§impl Ord for BaseUnits
impl Ord for BaseUnits
Source§impl PartialOrd for BaseUnits
impl PartialOrd for BaseUnits
Source§impl SubAssign for BaseUnits
impl SubAssign for BaseUnits
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for BaseUnits
impl Eq for BaseUnits
impl Pod for BaseUnits
Auto Trait Implementations§
impl Freeze for BaseUnits
impl RefUnwindSafe for BaseUnits
impl Send for BaseUnits
impl Sync for BaseUnits
impl Unpin for BaseUnits
impl UnwindSafe for BaseUnits
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