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