#[repr(i32)]pub enum TreeWalkResult {
Ok = 0,
Skip = 1,
Abort = -7,
}Expand description
Possible return codes for tree walking callback functions.
Variants§
Ok = 0
Continue with the traversal as normal.
Skip = 1
Skip the current node (in pre-order mode).
Abort = -7
Completely stop the traversal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeWalkResult
impl RefUnwindSafe for TreeWalkResult
impl Send for TreeWalkResult
impl Sync for TreeWalkResult
impl Unpin for TreeWalkResult
impl UnwindSafe for TreeWalkResult
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