Skip to main content

level_new

Function level_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn level_new( order_side: OrderSideOptional, price: Price, orders: CVec, ) -> *mut BookLevel
Expand description

§Safety

orders must uniquely own a valid Vec<BookOrderFfi> allocation transferred from Rust.

§Panics

Panics if order_side is NoOrderSide.

Returns an owning pointer to the heap-allocated BookLevel which the caller must eventually pass to level_drop.