Struct debris_common::graph::GraphDfs
source · pub struct GraphDfs {
to_visit: FxHashSet<usize>,
iter_order: IndexSet<usize, BuildHasherDefault<FxHasher>>,
}
Expand description
A struct that implements a non-recursive Depth-first-search on a GraphMatrix
.
This is a struct in order to save on allocations in hot code.
The elements are yielded in post-order, i.e. every node gets only yielded if
all of its children are yielded.
Fields§
§to_visit: FxHashSet<usize>
§iter_order: IndexSet<usize, BuildHasherDefault<FxHasher>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GraphDfs
impl Send for GraphDfs
impl Sync for GraphDfs
impl Unpin for GraphDfs
impl UnwindSafe for GraphDfs
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