pub struct BTree {
pub size: usize,
/* private fields */
}Fields§
§size: usizeImplementations§
Source§impl BTree
impl BTree
pub fn is_empty(&self) -> bool
pub fn contains(&self, value: &Value, row_id: u64) -> bool
Sourcepub fn lookup_eq(&self, value: &Value) -> Vec<u64>
pub fn lookup_eq(&self, value: &Value) -> Vec<u64>
All row ids whose key compares equal to value, in order.
Sourcepub fn range_scan(&self, low: &Value, high: &Value) -> Vec<u64>
pub fn range_scan(&self, low: &Value, high: &Value) -> Vec<u64>
All row ids with value in [low, high] inclusive, in key order.
pub fn insert(&mut self, value: Value, row_id: u64)
Sourcepub fn delete(&mut self, value: &Value, row_id: u64) -> bool
pub fn delete(&mut self, value: &Value, row_id: u64) -> bool
Remove one entry; returns true if found. Underflow is lazy: empty leaves remain in the linked structure until the tree itself becomes empty. This keeps separator maintenance simple while preserving ordered scans and allowing those leaves to be reused by later inserts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BTree
impl RefUnwindSafe for BTree
impl Send for BTree
impl Sync for BTree
impl Unpin for BTree
impl UnsafeUnpin for BTree
impl UnwindSafe for BTree
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