pub struct PriceTicks(/* private fields */);Expand description
Distinct newtype for protocol price ticks (compile-time mix-up prevention).
Construction is crate-private so invalid negative ticks cannot bypass
Price::from_ticks.
Implementations§
Trait Implementations§
Source§impl Clone for PriceTicks
impl Clone for PriceTicks
Source§fn clone(&self) -> PriceTicks
fn clone(&self) -> PriceTicks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PriceTicks
Source§impl Debug for PriceTicks
impl Debug for PriceTicks
impl Eq for PriceTicks
Source§impl Hash for PriceTicks
impl Hash for PriceTicks
Source§impl Ord for PriceTicks
impl Ord for PriceTicks
Source§fn cmp(&self, other: &PriceTicks) -> Ordering
fn cmp(&self, other: &PriceTicks) -> Ordering
1.21.0 (const: unstable) · 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 for PriceTicks
impl PartialEq for PriceTicks
Source§impl PartialOrd for PriceTicks
impl PartialOrd for PriceTicks
impl StructuralPartialEq for PriceTicks
Auto Trait Implementations§
impl Freeze for PriceTicks
impl RefUnwindSafe for PriceTicks
impl Send for PriceTicks
impl Sync for PriceTicks
impl Unpin for PriceTicks
impl UnsafeUnpin for PriceTicks
impl UnwindSafe for PriceTicks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.