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