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