Struct phoenix::quantities::BaseAtomsPerBaseUnit
source · #[repr(transparent)]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 AddAssign<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
impl AddAssign<BaseAtomsPerBaseUnit> 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 copy 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
§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
§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 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 BaseAtomsPerBaseUnit
impl PartialEq<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
source§impl PartialEq<BaseAtomsPerBaseUnit> for u64
impl PartialEq<BaseAtomsPerBaseUnit> for u64
source§fn eq(&self, other: &BaseAtomsPerBaseUnit) -> bool
fn eq(&self, other: &BaseAtomsPerBaseUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<u64> for BaseAtomsPerBaseUnit
impl PartialEq<u64> for BaseAtomsPerBaseUnit
source§impl PartialOrd<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
impl PartialOrd<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
source§fn partial_cmp(&self, other: &BaseAtomsPerBaseUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &BaseAtomsPerBaseUnit) -> Option<Ordering>
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<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
impl SubAssign<BaseAtomsPerBaseUnit> for BaseAtomsPerBaseUnit
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl WrapperU64 for BaseAtomsPerBaseUnit
impl WrapperU64 for BaseAtomsPerBaseUnit
impl Copy for BaseAtomsPerBaseUnit
impl Eq for BaseAtomsPerBaseUnit
impl Pod for BaseAtomsPerBaseUnit
Auto Trait Implementations§
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> 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.