pub struct DepthContext { /* private fields */ }Expand description
Tree traversal context that records only the current depth.
Implementations§
Trait Implementations§
Source§impl Debug for DepthContext
impl Debug for DepthContext
Source§impl Default for DepthContext
impl Default for DepthContext
Source§fn default() -> DepthContext
fn default() -> DepthContext
Returns the “default value” for a type. Read more
Source§impl<N: ?Sized> TreeDisplayContext<N> for DepthContext
impl<N: ?Sized> TreeDisplayContext<N> for DepthContext
Source§fn push_parent(&mut self, _parent: &N)
fn push_parent(&mut self, _parent: &N)
Record
parent while its children are visited.Source§fn pop_parent(&mut self, _parent: &N)
fn pop_parent(&mut self, _parent: &N)
Remove
parent after all of its children have been visited.Auto Trait Implementations§
impl Freeze for DepthContext
impl RefUnwindSafe for DepthContext
impl Send for DepthContext
impl Sync for DepthContext
impl Unpin for DepthContext
impl UnsafeUnpin for DepthContext
impl UnwindSafe for DepthContext
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