Struct phoenix::quantities::BaseLots
source · #[repr(transparent)]pub struct BaseLots { /* private fields */ }Implementations§
source§impl BaseLots
impl BaseLots
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<BaseLots> for BaseLots
impl AddAssign<BaseLots> for BaseLots
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl BorshDeserialize for BaseLotswhere
u64: BorshDeserialize,
impl BorshDeserialize for BaseLotswhere u64: BorshDeserialize,
source§impl BorshSerialize for BaseLotswhere
u64: BorshSerialize,
impl BorshSerialize for BaseLotswhere u64: BorshSerialize,
source§impl Div<BaseLots> for AdjustedQuoteLots
impl Div<BaseLots> for AdjustedQuoteLots
§type Output = QuoteLotsPerBaseUnit
type Output = QuoteLotsPerBaseUnit
The resulting type after applying the
/ operator.source§impl Div<BaseLots> for BaseAtoms
impl Div<BaseLots> for BaseAtoms
§type Output = BaseAtomsPerBaseLot
type Output = BaseAtomsPerBaseLot
The resulting type after applying the
/ operator.source§impl Div<BaseLotsPerBaseUnit> for BaseLots
impl Div<BaseLotsPerBaseUnit> for BaseLots
source§impl Div<BaseUnits> for BaseLots
impl Div<BaseUnits> for BaseLots
§type Output = BaseLotsPerBaseUnit
type Output = BaseLotsPerBaseUnit
The resulting type after applying the
/ operator.source§impl Mul<BaseAtomsPerBaseLot> for BaseLots
impl Mul<BaseAtomsPerBaseLot> for BaseLots
source§impl Mul<BaseLots> for BaseAtomsPerBaseLot
impl Mul<BaseLots> for BaseAtomsPerBaseLot
source§impl Mul<BaseLots> for QuoteLotsPerBaseUnit
impl Mul<BaseLots> for QuoteLotsPerBaseUnit
§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
* operator.source§impl Mul<QuoteLotsPerBaseUnit> for BaseLots
impl Mul<QuoteLotsPerBaseUnit> for BaseLots
§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 Ord for BaseLots
impl Ord for BaseLots
source§impl PartialEq<BaseLots> for BaseLots
impl PartialEq<BaseLots> for BaseLots
source§impl PartialEq<BaseLots> for u64
impl PartialEq<BaseLots> for u64
source§impl PartialOrd<BaseLots> for BaseLots
impl PartialOrd<BaseLots> for BaseLots
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<BaseLots> for BaseLots
impl SubAssign<BaseLots> for BaseLots
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for BaseLots
impl Eq for BaseLots
impl Pod for BaseLots
Auto Trait Implementations§
impl RefUnwindSafe for BaseLots
impl Send for BaseLots
impl Sync for BaseLots
impl Unpin for BaseLots
impl UnwindSafe for BaseLots
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.