pub trait OrderBookSide: Sealed {
// Required methods
fn try_cross(&mut self, order: &Order) -> Result<Matches>;
fn allocate(&mut self, order: Order);
}Expand description
A trait for order book side implementations.
Implementors provide logic for crossing orders against the book and allocating orders to the book.