pub struct InMemoryOrderBookSide { /* private fields */ }Expand description
An in-memory order book side implementation using a binary heap.
Orders are stored in a max-heap for efficient priority-based retrieval:
- Bids: sorted by price (highest first), then by time
- Asks: sorted by price (lowest first), then by time
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryOrderBookSide
impl Debug for InMemoryOrderBookSide
impl Sealed for InMemoryOrderBookSide
Auto Trait Implementations§
impl Freeze for InMemoryOrderBookSide
impl RefUnwindSafe for InMemoryOrderBookSide
impl !Send for InMemoryOrderBookSide
impl !Sync for InMemoryOrderBookSide
impl Unpin for InMemoryOrderBookSide
impl UnsafeUnpin for InMemoryOrderBookSide
impl UnwindSafe for InMemoryOrderBookSide
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