pub enum FoldDown<Out, Context> {
Abort(Out),
SkipChildren(Out),
Continue(Context),
}Variants§
Abort(Out)
Abort the entire traversal and immediately return the result.
SkipChildren(Out)
Skip visiting children of the current node and return the result to the parent’s fold_up.
Continue(Context)
Continue visiting the fold_down of the children of the current node.
Auto Trait Implementations§
impl<Out, Context> Freeze for FoldDown<Out, Context>
impl<Out, Context> RefUnwindSafe for FoldDown<Out, Context>where
Out: RefUnwindSafe,
Context: RefUnwindSafe,
impl<Out, Context> Send for FoldDown<Out, Context>
impl<Out, Context> Sync for FoldDown<Out, Context>
impl<Out, Context> Unpin for FoldDown<Out, Context>
impl<Out, Context> UnwindSafe for FoldDown<Out, Context>where
Out: UnwindSafe,
Context: UnwindSafe,
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
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