pub struct Walk {
pub visited: Vec<EntityId>,
pub stop: Stop,
pub revisited: Vec<EntityId>,
}Expand description
The outcome of a bounded walk.
Fields§
§visited: Vec<EntityId>Entities visited, in traversal order, each exactly once.
stop: StopWhy the walk ended.
revisited: Vec<EntityId>Entities that were reached again after being visited.
Non-empty means the graph is cyclic along the followed edges. Reported rather than silently skipped: in a spatial tree it is a defect worth surfacing to the caller.
Trait Implementations§
impl Eq for Walk
impl StructuralPartialEq for Walk
Auto Trait Implementations§
impl Freeze for Walk
impl RefUnwindSafe for Walk
impl Send for Walk
impl Sync for Walk
impl Unpin for Walk
impl UnsafeUnpin for Walk
impl UnwindSafe for Walk
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