pub enum VisitControlFlow<Node, Abort = !> {
Continue(Node),
Skip(Node),
Abort(Abort),
}
Expand description
The control flow of visiting an edge during a graph traversal.
Variants§
Continue(Node)
The traversal should continue on the outgoing edges of the given node.
Skip(Node)
The traversal should skip visiting the edges the given node.
Abort(Abort)
The traversal should abort and return immediately.
Implementations§
Source§impl<Node, Abort> VisitControlFlow<Node, Abort>
impl<Node, Abort> VisitControlFlow<Node, Abort>
Sourcepub fn map_node<Map, Mapped>(self, map: Map) -> VisitControlFlow<Mapped, Abort>where
Map: FnMut(Node) -> Mapped,
pub fn map_node<Map, Mapped>(self, map: Map) -> VisitControlFlow<Mapped, Abort>where
Map: FnMut(Node) -> Mapped,
Map the continue and skip values of this control flow.
Sourcepub fn map_abort<Map, Mapped>(self, map: Map) -> VisitControlFlow<Node, Mapped>where
Map: FnMut(Abort) -> Mapped,
pub fn map_abort<Map, Mapped>(self, map: Map) -> VisitControlFlow<Node, Mapped>where
Map: FnMut(Abort) -> Mapped,
Map the abort value of this control flow.
Auto Trait Implementations§
impl<Node, Abort> Freeze for VisitControlFlow<Node, Abort>
impl<Node, Abort> RefUnwindSafe for VisitControlFlow<Node, Abort>where
Node: RefUnwindSafe,
Abort: RefUnwindSafe,
impl<Node, Abort> Send for VisitControlFlow<Node, Abort>
impl<Node, Abort> Sync for VisitControlFlow<Node, Abort>
impl<Node, Abort> Unpin for VisitControlFlow<Node, Abort>
impl<Node, Abort> UnwindSafe for VisitControlFlow<Node, Abort>where
Node: UnwindSafe,
Abort: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more