#[repr(align(16))]pub struct PriceLevel {
pub price: Decimal,
pub quantity: Decimal,
}Expand description
Price level in the order book
Fields§
§price: DecimalThe price of the level.
quantity: DecimalThe quantity at the level.
Implementations§
Source§impl PriceLevel
impl PriceLevel
Trait Implementations§
Source§impl Clone for PriceLevel
impl Clone for PriceLevel
Source§fn clone(&self) -> PriceLevel
fn clone(&self) -> PriceLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PriceLevel
impl Debug for PriceLevel
Source§impl PartialEq for PriceLevel
impl PartialEq for PriceLevel
impl Copy for PriceLevel
impl Eq for PriceLevel
impl StructuralPartialEq for PriceLevel
Auto Trait Implementations§
impl Freeze for PriceLevel
impl RefUnwindSafe for PriceLevel
impl Send for PriceLevel
impl Sync for PriceLevel
impl Unpin for PriceLevel
impl UnwindSafe for PriceLevel
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.