pub struct TreeDepth(pub usize);Expand description
A structure representing the depth of a node in a tree.
This structure is used to represent the depth of a node in a tree. The depth of a node is the number of edges from the node to the tree’s root node. A root node will have a depth of 0.
§Fields
0- Ausizethat represents the depth of the node in the tree.
Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeDepth
impl RefUnwindSafe for TreeDepth
impl Send for TreeDepth
impl Sync for TreeDepth
impl Unpin for TreeDepth
impl UnwindSafe for TreeDepth
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