pub struct Traversal {
pub order: Vec<usize>,
pub predecessor: Vec<Option<usize>>,
}Expand description
The result of a traversal from a single start node.
Fields§
§order: Vec<usize>Nodes in the order they were first visited.
predecessor: Vec<Option<usize>>predecessor[v] is the node v was discovered from (None for the
start node and for unreached nodes).
Trait Implementations§
impl Eq for Traversal
impl StructuralPartialEq for Traversal
Auto Trait Implementations§
impl Freeze for Traversal
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnsafeUnpin for Traversal
impl UnwindSafe for Traversal
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