Struct re_int_histogram::tree::DenseLeaf
source · struct DenseLeaf {
counts: [u32; 16],
}
Fields§
§counts: [u32; 16]
The last bits of the address, mapped to their counts
Implementations§
source§impl DenseLeaf
impl DenseLeaf
fn increment(&mut self, abs_addr: u64, inc: u32)
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.
sourcefn remove(&mut self, my_addr: u64, range: RangeU64) -> u64
fn remove(&mut self, my_addr: 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) -> Option<u64>
fn max_key(&self, my_addr: u64) -> Option<u64>
fn range_count(&self, my_addr: u64, range: RangeU64) -> u64
Trait Implementations§
impl Copy for DenseLeaf
Auto Trait Implementations§
impl Freeze for DenseLeaf
impl RefUnwindSafe for DenseLeaf
impl Send for DenseLeaf
impl Sync for DenseLeaf
impl Unpin for DenseLeaf
impl UnwindSafe for DenseLeaf
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