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 duplicate 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
Source§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
Source§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§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§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 Freeze for QuoteAtomsPerQuoteUnit
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,
Source§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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more