Struct phoenix::quantities::BaseLotsPerBaseUnit
source · #[repr(transparent)]pub struct BaseLotsPerBaseUnit { /* private fields */ }Implementations§
source§impl BaseLotsPerBaseUnit
impl BaseLotsPerBaseUnit
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<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl Add<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§impl AddAssign<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl AddAssign<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl Clone for BaseLotsPerBaseUnit
impl Clone for BaseLotsPerBaseUnit
source§fn clone(&self) -> BaseLotsPerBaseUnit
fn clone(&self) -> BaseLotsPerBaseUnit
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 BaseLotsPerBaseUnit
impl Debug for BaseLotsPerBaseUnit
source§impl Default for BaseLotsPerBaseUnit
impl Default for BaseLotsPerBaseUnit
source§impl Display for BaseLotsPerBaseUnit
impl Display for BaseLotsPerBaseUnit
source§impl Div<BaseLotsPerBaseUnit> for AdjustedQuoteLots
impl Div<BaseLotsPerBaseUnit> for AdjustedQuoteLots
source§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 Div<BaseLotsPerBaseUnit> for BaseLots
impl Div<BaseLotsPerBaseUnit> for BaseLots
source§impl From<BaseLotsPerBaseUnit> for f64
impl From<BaseLotsPerBaseUnit> for f64
source§fn from(x: BaseLotsPerBaseUnit) -> f64
fn from(x: BaseLotsPerBaseUnit) -> f64
Converts to this type from the input type.
source§impl From<BaseLotsPerBaseUnit> for u64
impl From<BaseLotsPerBaseUnit> for u64
source§fn from(x: BaseLotsPerBaseUnit) -> u64
fn from(x: BaseLotsPerBaseUnit) -> u64
Converts to this type from the input type.
source§impl Mul<BaseAtomsPerBaseLot> for BaseLotsPerBaseUnit
impl Mul<BaseAtomsPerBaseLot> for BaseLotsPerBaseUnit
§type Output = BaseAtomsPerBaseUnit
type Output = BaseAtomsPerBaseUnit
The resulting type after applying the
* operator.source§fn mul(self, other: BaseAtomsPerBaseLot) -> BaseAtomsPerBaseUnit
fn mul(self, other: BaseAtomsPerBaseLot) -> BaseAtomsPerBaseUnit
Performs the
* operation. Read moresource§impl Mul<BaseLotsPerBaseUnit> for BaseAtomsPerBaseLot
impl Mul<BaseLotsPerBaseUnit> for BaseAtomsPerBaseLot
§type Output = BaseAtomsPerBaseUnit
type Output = BaseAtomsPerBaseUnit
The resulting type after applying the
* operator.source§fn mul(self, other: BaseLotsPerBaseUnit) -> BaseAtomsPerBaseUnit
fn mul(self, other: BaseLotsPerBaseUnit) -> BaseAtomsPerBaseUnit
Performs the
* operation. Read moresource§impl Mul<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl Mul<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§impl Mul<BaseLotsPerBaseUnit> for BaseUnits
impl Mul<BaseLotsPerBaseUnit> for BaseUnits
source§impl Mul<BaseLotsPerBaseUnit> for QuoteLots
impl Mul<BaseLotsPerBaseUnit> for QuoteLots
§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
* operator.source§fn mul(self, other: BaseLotsPerBaseUnit) -> AdjustedQuoteLots
fn mul(self, other: BaseLotsPerBaseUnit) -> AdjustedQuoteLots
Performs the
* operation. Read moresource§impl Mul<BaseUnits> for BaseLotsPerBaseUnit
impl Mul<BaseUnits> for BaseLotsPerBaseUnit
source§impl Mul<QuoteLots> for BaseLotsPerBaseUnit
impl Mul<QuoteLots> for BaseLotsPerBaseUnit
§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
* operator.source§impl Ord for BaseLotsPerBaseUnit
impl Ord for BaseLotsPerBaseUnit
source§fn cmp(&self, other: &BaseLotsPerBaseUnit) -> Ordering
fn cmp(&self, other: &BaseLotsPerBaseUnit) -> 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<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl PartialEq<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§impl PartialEq<BaseLotsPerBaseUnit> for u64
impl PartialEq<BaseLotsPerBaseUnit> for u64
source§fn eq(&self, other: &BaseLotsPerBaseUnit) -> bool
fn eq(&self, other: &BaseLotsPerBaseUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<u64> for BaseLotsPerBaseUnit
impl PartialEq<u64> for BaseLotsPerBaseUnit
source§impl PartialOrd<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl PartialOrd<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§fn partial_cmp(&self, other: &BaseLotsPerBaseUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &BaseLotsPerBaseUnit) -> 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 Rem<BaseLotsPerBaseUnit> for AdjustedQuoteLots
impl Rem<BaseLotsPerBaseUnit> for AdjustedQuoteLots
source§impl Sub<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl Sub<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§impl SubAssign<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl SubAssign<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl Sum<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
impl Sum<BaseLotsPerBaseUnit> for BaseLotsPerBaseUnit
source§impl WrapperU64 for BaseLotsPerBaseUnit
impl WrapperU64 for BaseLotsPerBaseUnit
impl Copy for BaseLotsPerBaseUnit
impl Eq for BaseLotsPerBaseUnit
impl Pod for BaseLotsPerBaseUnit
Auto Trait Implementations§
impl RefUnwindSafe for BaseLotsPerBaseUnit
impl Send for BaseLotsPerBaseUnit
impl Sync for BaseLotsPerBaseUnit
impl Unpin for BaseLotsPerBaseUnit
impl UnwindSafe for BaseLotsPerBaseUnit
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.