pub struct TransitiveClosure { /* private fields */ }Expand description
A dependency closure builder (transitive closure via BFS).
Implementations§
Source§impl TransitiveClosure
impl TransitiveClosure
Sourcepub fn reachable_from(&self, start: usize) -> Vec<usize>
pub fn reachable_from(&self, start: usize) -> Vec<usize>
Computes all nodes reachable from start (including start).
Auto Trait Implementations§
impl Freeze for TransitiveClosure
impl RefUnwindSafe for TransitiveClosure
impl Send for TransitiveClosure
impl Sync for TransitiveClosure
impl Unpin for TransitiveClosure
impl UnsafeUnpin for TransitiveClosure
impl UnwindSafe for TransitiveClosure
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