pub struct QuoteLotsPerQuoteUnit { /* private fields */ }Implementations§
Source§impl QuoteLotsPerQuoteUnit
impl QuoteLotsPerQuoteUnit
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 QuoteLotsPerQuoteUnit
impl Add for QuoteLotsPerQuoteUnit
Source§impl AddAssign for QuoteLotsPerQuoteUnit
impl AddAssign for QuoteLotsPerQuoteUnit
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Clone for QuoteLotsPerQuoteUnit
impl Clone for QuoteLotsPerQuoteUnit
Source§fn clone(&self) -> QuoteLotsPerQuoteUnit
fn clone(&self) -> QuoteLotsPerQuoteUnit
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 QuoteLotsPerQuoteUnit
impl Debug for QuoteLotsPerQuoteUnit
Source§impl Default for QuoteLotsPerQuoteUnit
impl Default for QuoteLotsPerQuoteUnit
Source§impl Display for QuoteLotsPerQuoteUnit
impl Display for QuoteLotsPerQuoteUnit
Source§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 Div<QuoteLotsPerQuoteUnit> for QuoteLots
impl Div<QuoteLotsPerQuoteUnit> for QuoteLots
Source§type Output = QuoteUnits
type Output = QuoteUnits
The resulting type after applying the
/ operator.Source§fn div(self, other: QuoteLotsPerQuoteUnit) -> QuoteUnits
fn div(self, other: QuoteLotsPerQuoteUnit) -> QuoteUnits
Performs the
/ operation. Read moreSource§impl From<QuoteLotsPerQuoteUnit> for f64
impl From<QuoteLotsPerQuoteUnit> for f64
Source§fn from(x: QuoteLotsPerQuoteUnit) -> f64
fn from(x: QuoteLotsPerQuoteUnit) -> f64
Converts to this type from the input type.
Source§impl From<QuoteLotsPerQuoteUnit> for u64
impl From<QuoteLotsPerQuoteUnit> for u64
Source§fn from(x: QuoteLotsPerQuoteUnit) -> u64
fn from(x: QuoteLotsPerQuoteUnit) -> u64
Converts to this type from the input type.
Source§impl Mul<QuoteAtomsPerQuoteLot> for QuoteLotsPerQuoteUnit
impl Mul<QuoteAtomsPerQuoteLot> for QuoteLotsPerQuoteUnit
Source§type Output = QuoteAtomsPerQuoteUnit
type Output = QuoteAtomsPerQuoteUnit
The resulting type after applying the
* operator.Source§fn mul(self, other: QuoteAtomsPerQuoteLot) -> QuoteAtomsPerQuoteUnit
fn mul(self, other: QuoteAtomsPerQuoteLot) -> QuoteAtomsPerQuoteUnit
Performs the
* operation. Read moreSource§impl Mul<QuoteLotsPerQuoteUnit> for QuoteAtomsPerQuoteLot
impl Mul<QuoteLotsPerQuoteUnit> for QuoteAtomsPerQuoteLot
Source§type Output = QuoteAtomsPerQuoteUnit
type Output = QuoteAtomsPerQuoteUnit
The resulting type after applying the
* operator.Source§fn mul(self, other: QuoteLotsPerQuoteUnit) -> QuoteAtomsPerQuoteUnit
fn mul(self, other: QuoteLotsPerQuoteUnit) -> QuoteAtomsPerQuoteUnit
Performs the
* operation. Read moreSource§impl Mul<QuoteLotsPerQuoteUnit> for QuoteUnits
impl Mul<QuoteLotsPerQuoteUnit> for QuoteUnits
Source§impl Mul<QuoteUnits> for QuoteLotsPerQuoteUnit
impl Mul<QuoteUnits> for QuoteLotsPerQuoteUnit
Source§impl Mul for QuoteLotsPerQuoteUnit
impl Mul for QuoteLotsPerQuoteUnit
Source§impl Ord for QuoteLotsPerQuoteUnit
impl Ord for QuoteLotsPerQuoteUnit
Source§fn cmp(&self, other: &QuoteLotsPerQuoteUnit) -> Ordering
fn cmp(&self, other: &QuoteLotsPerQuoteUnit) -> 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<QuoteLotsPerQuoteUnit> for u64
impl PartialEq<QuoteLotsPerQuoteUnit> for u64
Source§impl PartialEq<u64> for QuoteLotsPerQuoteUnit
impl PartialEq<u64> for QuoteLotsPerQuoteUnit
Source§impl PartialEq for QuoteLotsPerQuoteUnit
impl PartialEq for QuoteLotsPerQuoteUnit
Source§impl PartialOrd for QuoteLotsPerQuoteUnit
impl PartialOrd for QuoteLotsPerQuoteUnit
Source§impl Sub for QuoteLotsPerQuoteUnit
impl Sub for QuoteLotsPerQuoteUnit
Source§impl SubAssign for QuoteLotsPerQuoteUnit
impl SubAssign for QuoteLotsPerQuoteUnit
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl Sum for QuoteLotsPerQuoteUnit
impl Sum for QuoteLotsPerQuoteUnit
Source§impl WrapperU64 for QuoteLotsPerQuoteUnit
impl WrapperU64 for QuoteLotsPerQuoteUnit
impl Copy for QuoteLotsPerQuoteUnit
impl Eq for QuoteLotsPerQuoteUnit
impl Pod for QuoteLotsPerQuoteUnit
Auto Trait Implementations§
impl Freeze for QuoteLotsPerQuoteUnit
impl RefUnwindSafe for QuoteLotsPerQuoteUnit
impl Send for QuoteLotsPerQuoteUnit
impl Sync for QuoteLotsPerQuoteUnit
impl Unpin for QuoteLotsPerQuoteUnit
impl UnwindSafe for QuoteLotsPerQuoteUnit
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