Struct re_int_histogram::tree::BranchNode
source · struct BranchNode {
total_count: u64,
children: [Option<Box<Node>>; 16],
}
Fields§
§total_count: u64
Very important optimization
children: [Option<Box<Node>>; 16]
The index is the next few bits of the key
Implementations§
source§impl BranchNode
impl BranchNode
fn increment(&mut self, level: u64, addr: u64, inc: u32)
sourcefn decrement(&mut self, level: u64, addr: u64, dec: u32) -> u32
fn decrement(&mut self, level: u64, addr: u64, dec: u32) -> u32
Returns how much the total count decreased by.
sourcefn remove(&mut self, my_addr: u64, my_level: u64, range: RangeU64) -> u64
fn remove(&mut self, my_addr: u64, my_level: u64, range: RangeU64) -> u64
Returns how much the total count decreased by.
fn is_empty(&self) -> bool
fn total_count(&self) -> u64
fn min_key(&self, my_addr: u64, my_level: u64) -> Option<u64>
fn max_key(&self, my_addr: u64, my_level: u64) -> Option<u64>
fn range_count(&self, my_addr: u64, my_level: u64, range: RangeU64) -> u64
Trait Implementations§
source§impl Clone for BranchNode
impl Clone for BranchNode
source§fn clone(&self) -> BranchNode
fn clone(&self) -> BranchNode
Returns a copy 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 BranchNode
impl Debug for BranchNode
source§impl Default for BranchNode
impl Default for BranchNode
source§fn default() -> BranchNode
fn default() -> BranchNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BranchNode
impl RefUnwindSafe for BranchNode
impl Send for BranchNode
impl Sync for BranchNode
impl Unpin for BranchNode
impl UnwindSafe for BranchNode
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