#[repr(C)]
pub struct OrderTreeNodes { pub order_tree_type: u8, pub padding: [u8; 3], pub bump_index: u32, pub free_list_len: u32, pub free_list_head: NodeHandle, pub reserved: [u8; 512], pub nodes: [AnyNode; 1024], }
Expand description

A binary tree on AnyNode::key()

The key encodes the price in the top 64 bits.

Fields

order_tree_type: u8padding: [u8; 3]bump_index: u32free_list_len: u32free_list_head: NodeHandlereserved: [u8; 512]nodes: [AnyNode; 1024]

Implementations

Iterate over all entries, including invalid orders

smallest to highest for asks highest to smallest for bids

Remove the order with the lowest expiry timestamp, if that’s < now_ts.

When a node changes, the parents’ child_earliest_expiry may need to be updated.

This function walks up the stack of parents and applies the change where the previous child’s outdated_expiry is replaced by new_expiry.

Returns the handle of the node with the lowest expiry timestamp, and this timestamp

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
If this function returns true, then it must be valid to reinterpret bits as &Self. Read more
Casts the value.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Casts the value.
Casts the value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Casts the value.
Casts the value.