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