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