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