#[repr(C)]pub struct Level_API(/* private fields */);
Expand description
C compatible Foreign Function Interface (FFI) for an underlying order bookLevel
.
This struct wraps Level
in a way that makes it compatible with C function
calls, enabling interaction with Level
in a C environment.
It implements the Deref
trait, allowing instances of Level_API
to be
dereferenced to Level
, providing access to Level
’s methods without
having to manually acce wss the underlying Level
instance.
Implementations§
Methods from Deref<Target = Level>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn first(&self) -> Option<&BookOrder>
Sourcepub fn get_orders(&self) -> Vec<BookOrder>
pub fn get_orders(&self) -> Vec<BookOrder>
Returns the orders in the insertion order.
pub fn size(&self) -> f64
pub fn size_raw(&self) -> u64
pub fn exposure(&self) -> f64
pub fn exposure_raw(&self) -> u64
pub fn add_bulk(&mut self, orders: Vec<BookOrder>)
pub fn add(&mut self, order: BookOrder)
pub fn update(&mut self, order: BookOrder)
pub fn delete(&mut self, order: &BookOrder)
pub fn remove_by_id( &mut self, order_id: OrderId, sequence: u64, ts_event: UnixNanos, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Level_API
impl RefUnwindSafe for Level_API
impl Send for Level_API
impl Sync for Level_API
impl Unpin for Level_API
impl UnwindSafe for Level_API
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