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