pub struct Depth { /* private fields */ }
Expand description
Depth calculates minimum, maximum, average and percentile of leaf-node
depths in the Llrb
tree.
Implementations§
Source§impl Depth
impl Depth
Sourcepub fn percentiles(&self) -> Vec<(u8, usize)>
pub fn percentiles(&self) -> Vec<(u8, usize)>
Return depth as tuple of percentiles, each tuple provides (percentile, depth). Returned percentiles from 90, 91 .. 99
Sourcepub fn pretty_print(&self, prefix: &str)
pub fn pretty_print(&self, prefix: &str)
Pretty print depth statistics in human readable format, useful in logs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnwindSafe for Depth
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