pub struct Stats {
pub prefix_count: usize,
pub child_count: usize,
pub node_count: usize,
pub leaf_count: usize,
pub fringe_count: usize,
}Expand description
Stats about a node and its descendants.
Fields§
§prefix_count: usizeThe total number of direct prefixes: does not count leaves and fringes.
child_count: usizeThe total number of parent-child node relations.
node_count: usizeThe total number of full nodes in the trie.
leaf_count: usizeThe total number of leaf nodes.
fringe_count: usizeThe total number of fringe nodes.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
Source§impl Ord for Stats
impl Ord for Stats
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Stats
impl PartialOrd for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more