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