[−][src]Struct llrb_index::Depth
Depth calculates minimum, maximum, average and percentile of leaf-node
depths in the Llrb
tree.
Implementations
impl Depth
[src]
pub fn samples(&self) -> usize
[src]
Return number of leaf-nodes sampled in Llrb
instance.
pub fn min(&self) -> usize
[src]
Return minimum depth of leaf-node in Llrb
instance.
pub fn max(&self) -> usize
[src]
Return maximum depth of leaf-node in Llrb
instance.
pub fn mean(&self) -> usize
[src]
Return the average depth of leaf-nodes in Llrb
instance.
pub fn percentiles(&self) -> Vec<(u8, usize)>
[src]
Return depth as tuple of percentiles, each tuple provides (percentile, depth). Returned percentiles from 90, 91 .. 99
pub fn pretty_print(&self, prefix: &str)
[src]
Pretty print depth statistics in human readable format, useful in logs.
pub fn json(&self) -> String
[src]
Convert depth statistics to JSON format, useful for plotting.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnwindSafe for Depth
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,