[−][src]Struct ternary_tree::Stats
Contains various metrics describing the tree: its nodes, keys and values. Mostly used for tuning and debugging purpose.
dist[n].matches
number of values reached by traversing nmiddle
links (the number of keys of length n)dist[n].sides
number of values reached by traversing nleft
ormiddle
links (those links may indicate that the tree is not well balanced)dist[n].depth
number of values whose total depth (middle
,left
andright
links) is nkey_len.min
length of the shortest key inserted in the treekey_len.max
length of the longest key inserted in the treecount.nodes
total number of nodes in the treecount.values
number of nodes which store a value (same as len)bytes.node
byte size of a node (including the fixed size of a value, but excluding heap allocated memory of this value)bytes.total
total number of bytes allocated for nodes (count.nodes
*bytes.node
)
Fields
dist: Vec<DistStat>
key_len: KeyLenStat
count: CountStat
bytes: BytesStat
Trait Implementations
impl Default for Stats
[src]
impl PartialEq<Stats> for Stats
[src]
impl Debug for Stats
[src]
impl StructuralPartialEq for Stats
[src]
Auto Trait Implementations
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
impl RefUnwindSafe for Stats
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,