[−][src]Struct llrb_index::Stats
Statistics on Llrb
tree. Serves two purpose:
- To get partial but quick statistics via
Llrb::stats
method. - To get full statisics via
Llrb::validate
method.
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
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]
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, 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>,