Struct phoenix::quantities::QuoteAtomsPerQuoteUnit
source · pub struct QuoteAtomsPerQuoteUnit { /* private fields */ }Implementations§
source§impl QuoteAtomsPerQuoteUnit
impl QuoteAtomsPerQuoteUnit
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 for QuoteAtomsPerQuoteUnit
impl Add for QuoteAtomsPerQuoteUnit
source§impl AddAssign for QuoteAtomsPerQuoteUnit
impl AddAssign for QuoteAtomsPerQuoteUnit
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl Clone for QuoteAtomsPerQuoteUnit
impl Clone for QuoteAtomsPerQuoteUnit
source§fn clone(&self) -> QuoteAtomsPerQuoteUnit
fn clone(&self) -> QuoteAtomsPerQuoteUnit
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 QuoteAtomsPerQuoteUnit
impl Debug for QuoteAtomsPerQuoteUnit
source§impl Default for QuoteAtomsPerQuoteUnit
impl Default for QuoteAtomsPerQuoteUnit
source§impl Display for QuoteAtomsPerQuoteUnit
impl Display for QuoteAtomsPerQuoteUnit
source§impl Div<QuoteAtomsPerQuoteLot> for QuoteAtomsPerQuoteUnit
impl Div<QuoteAtomsPerQuoteLot> for QuoteAtomsPerQuoteUnit
§type Output = QuoteLotsPerQuoteUnit
type Output = QuoteLotsPerQuoteUnit
The resulting type after applying the
/ operator.source§fn div(self, other: QuoteAtomsPerQuoteLot) -> QuoteLotsPerQuoteUnit
fn div(self, other: QuoteAtomsPerQuoteLot) -> QuoteLotsPerQuoteUnit
Performs the
/ operation. Read moresource§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 From<QuoteAtomsPerQuoteUnit> for f64
impl From<QuoteAtomsPerQuoteUnit> for f64
source§fn from(x: QuoteAtomsPerQuoteUnit) -> f64
fn from(x: QuoteAtomsPerQuoteUnit) -> f64
Converts to this type from the input type.
source§impl From<QuoteAtomsPerQuoteUnit> for u64
impl From<QuoteAtomsPerQuoteUnit> for u64
source§fn from(x: QuoteAtomsPerQuoteUnit) -> u64
fn from(x: QuoteAtomsPerQuoteUnit) -> u64
Converts to this type from the input type.
source§impl Mul for QuoteAtomsPerQuoteUnit
impl Mul for QuoteAtomsPerQuoteUnit
source§impl Ord for QuoteAtomsPerQuoteUnit
impl Ord for QuoteAtomsPerQuoteUnit
source§fn cmp(&self, other: &QuoteAtomsPerQuoteUnit) -> Ordering
fn cmp(&self, other: &QuoteAtomsPerQuoteUnit) -> 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<QuoteAtomsPerQuoteUnit> for u64
impl PartialEq<QuoteAtomsPerQuoteUnit> for u64
source§fn eq(&self, other: &QuoteAtomsPerQuoteUnit) -> bool
fn eq(&self, other: &QuoteAtomsPerQuoteUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<u64> for QuoteAtomsPerQuoteUnit
impl PartialEq<u64> for QuoteAtomsPerQuoteUnit
source§impl PartialEq for QuoteAtomsPerQuoteUnit
impl PartialEq for QuoteAtomsPerQuoteUnit
source§impl PartialOrd for QuoteAtomsPerQuoteUnit
impl PartialOrd for QuoteAtomsPerQuoteUnit
source§fn partial_cmp(&self, other: &QuoteAtomsPerQuoteUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &QuoteAtomsPerQuoteUnit) -> 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 Sub for QuoteAtomsPerQuoteUnit
impl Sub for QuoteAtomsPerQuoteUnit
source§impl SubAssign for QuoteAtomsPerQuoteUnit
impl SubAssign for QuoteAtomsPerQuoteUnit
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl Sum for QuoteAtomsPerQuoteUnit
impl Sum for QuoteAtomsPerQuoteUnit
source§impl WrapperU64 for QuoteAtomsPerQuoteUnit
impl WrapperU64 for QuoteAtomsPerQuoteUnit
impl Copy for QuoteAtomsPerQuoteUnit
impl Eq for QuoteAtomsPerQuoteUnit
impl Pod for QuoteAtomsPerQuoteUnit
Auto Trait Implementations§
impl RefUnwindSafe for QuoteAtomsPerQuoteUnit
impl Send for QuoteAtomsPerQuoteUnit
impl Sync for QuoteAtomsPerQuoteUnit
impl Unpin for QuoteAtomsPerQuoteUnit
impl UnwindSafe for QuoteAtomsPerQuoteUnit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more