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 for Ticks
impl AddAssign 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
Source§type Output = QuoteLotsPerBaseUnitPerTick
type Output = QuoteLotsPerBaseUnitPerTick
The resulting type after applying the
/ operator.Source§impl Mul<QuoteLotsPerBaseUnitPerTick> for Ticks
impl Mul<QuoteLotsPerBaseUnitPerTick> for Ticks
Source§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
Source§type Output = QuoteLotsPerBaseUnit
type Output = QuoteLotsPerBaseUnit
The resulting type after applying the
* operator.Source§impl Ord for Ticks
impl Ord for Ticks
Source§impl PartialOrd for Ticks
impl PartialOrd for Ticks
Source§impl SubAssign for Ticks
impl SubAssign 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 Freeze for Ticks
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> 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