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 for QuoteLots
impl AddAssign 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,
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 QuoteLotswhere
u64: BorshSerialize,
impl BorshSerialize for QuoteLotswhere
u64: BorshSerialize,
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<QuoteLots> for QuoteAtoms
impl Div<QuoteLots> for QuoteAtoms
Source§type Output = QuoteAtomsPerQuoteLot
type Output = QuoteAtomsPerQuoteLot
The resulting type after applying the
/
operator.Source§impl Div<QuoteLotsPerQuoteUnit> for QuoteLots
impl Div<QuoteLotsPerQuoteUnit> for QuoteLots
Source§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
Source§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
Source§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
Source§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
Source§type Output = AdjustedQuoteLots
type Output = AdjustedQuoteLots
The resulting type after applying the
*
operator.Source§impl Mul<QuoteLots> for QuoteAtomsPerQuoteLot
impl Mul<QuoteLots> for QuoteAtomsPerQuoteLot
Source§type Output = QuoteAtoms
type Output = QuoteAtoms
The resulting type after applying the
*
operator.Source§impl Ord for QuoteLots
impl Ord for QuoteLots
Source§impl PartialOrd for QuoteLots
impl PartialOrd for QuoteLots
Source§impl SubAssign for QuoteLots
impl SubAssign 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 Freeze for QuoteLots
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> 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