Struct re_int_histogram::tree::SparseLeaf
source · struct SparseLeaf {
addrs: SmallVec<[u64; 3]>,
counts: SmallVec<[u32; 3]>,
}
Fields§
§addrs: SmallVec<[u64; 3]>
Two vectors of equal lengths,
making up (addr, count) pairs,
sorted by addr
.
counts: SmallVec<[u32; 3]>
The count may never be zero.
Implementations§
source§impl SparseLeaf
impl SparseLeaf
fn increment(self, level: u64, abs_addr: u64, inc: u32) -> Node
sourcefn into_branch_node(self, level: u64) -> BranchNode
fn into_branch_node(self, level: u64) -> BranchNode
Called on overflow
sourcefn decrement(&mut self, abs_addr: u64, dec: u32) -> u32
fn decrement(&mut self, abs_addr: u64, dec: u32) -> u32
Returns how much the total count decreased by.
fn is_empty(&self) -> bool
fn total_count(&self) -> u64
fn min_key(&self) -> Option<u64>
fn max_key(&self) -> Option<u64>
fn range_count(&self, range: RangeU64) -> u64
Trait Implementations§
source§impl Clone for SparseLeaf
impl Clone for SparseLeaf
source§fn clone(&self) -> SparseLeaf
fn clone(&self) -> SparseLeaf
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 SparseLeaf
impl Debug for SparseLeaf
source§impl Default for SparseLeaf
impl Default for SparseLeaf
source§fn default() -> SparseLeaf
fn default() -> SparseLeaf
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SparseLeaf
impl RefUnwindSafe for SparseLeaf
impl Send for SparseLeaf
impl Sync for SparseLeaf
impl Unpin for SparseLeaf
impl UnwindSafe for SparseLeaf
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