pub struct BTree {
pub order: usize,
pub num_keys: usize,
pub height: usize,
}Expand description
B-tree properties.
Fields§
§order: usize§num_keys: usize§height: usizeImplementations§
Source§impl BTree
impl BTree
pub fn new(order: usize) -> Self
pub fn max_keys_per_node(&self) -> usize
pub fn min_keys_per_node(&self) -> usize
pub fn max_height_for_n_keys(&self, n: usize) -> usize
pub fn disk_access_per_operation(&self) -> String
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