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