[][src]Struct llrb_index::Depth

pub struct Depth { /* fields omitted */ }

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

impl Clone for Depth[src]

impl Default for Depth[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.