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 for BaseLots
impl AddAssign 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,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for BaseLotswhere
u64: BorshSerialize,
impl BorshSerialize for BaseLotswhere
u64: BorshSerialize,
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<BaseLots> for BaseAtoms
impl Div<BaseLots> for BaseAtoms
Source§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
Source§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
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 Ord for BaseLots
impl Ord for BaseLots
Source§impl PartialOrd for BaseLots
impl PartialOrd for BaseLots
Source§impl SubAssign for BaseLots
impl SubAssign 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 Freeze for BaseLots
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> 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