pub struct TreeStatistics {
pub total_nodes: usize,
pub max_level: usize,
pub nodes_per_level: HashMap<usize, usize>,
pub root_count: usize,
pub document_id: DocumentId,
}Expand description
Statistics about the hierarchical tree
Fields§
§total_nodes: usizeTotal number of nodes in the tree
max_level: usizeMaximum depth level of the tree
nodes_per_level: HashMap<usize, usize>Count of nodes at each level
root_count: usizeNumber of root nodes in the tree
document_id: DocumentIdID of the document this tree represents
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeStatistics
impl RefUnwindSafe for TreeStatistics
impl Send for TreeStatistics
impl Sync for TreeStatistics
impl Unpin for TreeStatistics
impl UnsafeUnpin for TreeStatistics
impl UnwindSafe for TreeStatistics
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more