pub(crate) enum BranchFactor {
Two,
Four,
Eight,
ThirtyTwo,
}
Variants§
Implementations§
Source§impl BranchFactor
impl BranchFactor
fn nodes_per_byte(&self) -> u32
fn bytes_per_node(&self) -> u32
fn bit_id(&self) -> u8
Source§impl BranchFactor
impl BranchFactor
pub(crate) fn value(&self) -> u32
Sourcepub(crate) fn max_height(&self) -> u8
pub(crate) fn max_height(&self) -> u8
The maximum height that can be used for a given branch factor without the risk of encountering overflows
fn tree_height_for(&self, max_value: u32) -> u8
fn from_val(val: u8) -> BranchFactor
fn node_size_log2(&self) -> u32
pub(crate) fn byte_mask(&self) -> u32
fn u32_mask(&self) -> u32
Trait Implementations§
Source§impl Clone for BranchFactor
impl Clone for BranchFactor
Source§fn clone(&self) -> BranchFactor
fn clone(&self) -> BranchFactor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BranchFactor
impl Debug for BranchFactor
Source§impl PartialEq for BranchFactor
impl PartialEq for BranchFactor
impl Copy for BranchFactor
impl Eq for BranchFactor
impl StructuralPartialEq for BranchFactor
Auto Trait Implementations§
impl Freeze for BranchFactor
impl RefUnwindSafe for BranchFactor
impl Send for BranchFactor
impl Sync for BranchFactor
impl Unpin for BranchFactor
impl UnwindSafe for BranchFactor
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