[][src]Struct llrb_index::Stats

pub struct Stats { /* fields omitted */ }

Statistics on Llrb tree. Serves two purpose:

Implementations

impl Stats[src]

pub fn entries(&self) -> usize[src]

Return number entries in Llrb instance.

pub fn node_size(&self) -> usize[src]

Return node-size, including over-head for Llrb<k,V>. Although the node overhead is constant, the node size varies based on key and value types. EG:

use llrb_index::Llrb;
let mut llrb: Llrb<u64,i128> = Llrb::new("myinstance");

// size of key: 8 bytes
// size of value: 16 bytes
// overhead is 24 bytes
assert_eq!(llrb.stats().node_size(), 48);

pub fn blacks(&self) -> Option<usize>[src]

Return number of black nodes from root to leaf, on both left and right child.

pub fn depths(&self) -> Option<Depth>[src]

Return Depth statistics.

Trait Implementations

impl Default for Stats[src]

Auto Trait Implementations

impl RefUnwindSafe for Stats

impl Send for Stats

impl Sync for Stats

impl Unpin for Stats

impl UnwindSafe for Stats

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, 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.