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