pub struct TreeStats {
pub nodes: usize,
pub leaves: usize,
pub max_depth: usize,
pub total_size: usize,
}Expand description
A tree statistics collector.
Fields§
§nodes: usizeTotal node count
leaves: usizeLeaf node count
max_depth: usizeMaximum depth
total_size: usizeTotal tree size
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeStats
impl RefUnwindSafe for TreeStats
impl Send for TreeStats
impl Sync for TreeStats
impl Unpin for TreeStats
impl UnsafeUnpin for TreeStats
impl UnwindSafe for TreeStats
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