pub struct TraversedNode {
pub element: ElementId,
pub depth: usize,
}Fields§
§element: ElementIdCanonical element discovered by the walk.
depth: usizeShortest discovered hop depth from any seed.
Trait Implementations§
Source§impl Clone for TraversedNode
impl Clone for TraversedNode
Source§fn clone(&self) -> TraversedNode
fn clone(&self) -> TraversedNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TraversedNode
Source§impl Debug for TraversedNode
impl Debug for TraversedNode
impl Eq for TraversedNode
Source§impl Hash for TraversedNode
impl Hash for TraversedNode
Source§impl Ord for TraversedNode
impl Ord for TraversedNode
Source§fn cmp(&self, other: &TraversedNode) -> Ordering
fn cmp(&self, other: &TraversedNode) -> Ordering
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 PartialEq for TraversedNode
impl PartialEq for TraversedNode
Source§fn eq(&self, other: &TraversedNode) -> bool
fn eq(&self, other: &TraversedNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TraversedNode
impl PartialOrd for TraversedNode
impl StructuralPartialEq for TraversedNode
Auto Trait Implementations§
impl Freeze for TraversedNode
impl RefUnwindSafe for TraversedNode
impl Send for TraversedNode
impl Sync for TraversedNode
impl Unpin for TraversedNode
impl UnsafeUnpin for TraversedNode
impl UnwindSafe for TraversedNode
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