Struct phoenix::quantities::QuoteLots
source · #[repr(transparent)]pub struct QuoteLots { /* private fields */ }Implementations§
source§impl QuoteLots
impl QuoteLots
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 AddAssign<QuoteLots> for QuoteLots
impl AddAssign<QuoteLots> for QuoteLots
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl BorshDeserialize for QuoteLotswhere
u64: BorshDeserialize,
impl BorshDeserialize for QuoteLotswhere u64: BorshDeserialize,
source§impl BorshSerialize for QuoteLotswhere
u64: BorshSerialize,
impl BorshSerialize for QuoteLotswhere u64: BorshSerialize,
source§impl Div<QuoteLots> for AdjustedQuoteLots
impl Div<QuoteLots> for AdjustedQuoteLots
§type Output = BaseLotsPerBaseUnit
type Output = BaseLotsPerBaseUnit
The resulting type after applying the
/ operator.source§impl Div<QuoteLots> for QuoteAtoms
impl Div<QuoteLots> for QuoteAtoms
§type Output = QuoteAtomsPerQuoteLot
type Output = QuoteAtomsPerQuoteLot
The resulting type after applying the
/ operator.source§impl Div<QuoteLotsPerQuoteUnit> for QuoteLots
impl Div<QuoteLotsPerQuoteUnit> for QuoteLots
§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 Div<QuoteUnits> for QuoteLots
impl Div<QuoteUnits> for QuoteLots
§type Output = QuoteLotsPerQuoteUnit
type Output = QuoteLotsPerQuoteUnit
The resulting type after applying the
/ operator.source§fn div(self, other: QuoteUnits) -> QuoteLotsPerQuoteUnit
fn div(self, other: QuoteUnits) -> QuoteLotsPerQuoteUnit
Performs the
/ operation. Read moresource§impl Mul<BaseLotsPerBaseUnit> for QuoteLots
impl Mul<BaseLotsPerBaseUnit> for QuoteLots
§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
* operator.source§fn mul(self, other: BaseLotsPerBaseUnit) -> AdjustedQuoteLots
fn mul(self, other: BaseLotsPerBaseUnit) -> AdjustedQuoteLots
Performs the
* operation. Read moresource§impl Mul<QuoteAtomsPerQuoteLot> for QuoteLots
impl Mul<QuoteAtomsPerQuoteLot> for QuoteLots
§type Output = QuoteAtoms
type Output = QuoteAtoms
The resulting type after applying the
* operator.source§fn mul(self, other: QuoteAtomsPerQuoteLot) -> QuoteAtoms
fn mul(self, other: QuoteAtomsPerQuoteLot) -> QuoteAtoms
Performs the
* operation. Read moresource§impl Mul<QuoteLots> for BaseLotsPerBaseUnit
impl Mul<QuoteLots> for BaseLotsPerBaseUnit
§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
* operator.source§impl Mul<QuoteLots> for QuoteAtomsPerQuoteLot
impl Mul<QuoteLots> for QuoteAtomsPerQuoteLot
§type Output = QuoteAtoms
type Output = QuoteAtoms
The resulting type after applying the
* operator.source§impl Ord for QuoteLots
impl Ord for QuoteLots
source§impl PartialEq<QuoteLots> for QuoteLots
impl PartialEq<QuoteLots> for QuoteLots
source§impl PartialEq<QuoteLots> for u64
impl PartialEq<QuoteLots> for u64
source§impl PartialOrd<QuoteLots> for QuoteLots
impl PartialOrd<QuoteLots> for QuoteLots
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl SubAssign<QuoteLots> for QuoteLots
impl SubAssign<QuoteLots> for QuoteLots
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for QuoteLots
impl Eq for QuoteLots
impl Pod for QuoteLots
Auto Trait Implementations§
impl RefUnwindSafe for QuoteLots
impl Send for QuoteLots
impl Sync for QuoteLots
impl Unpin for QuoteLots
impl UnwindSafe for QuoteLots
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§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.