pub enum WalkResult {
Advance,
Skip,
Interrupt,
InterruptWith(Any),
}Expand description
What a callback asks the Rust walker to do with the current value.
Variants§
Advance
Continue and visit this value’s children.
Skip
Continue without visiting this value’s children or firing its exit hook.
Interrupt
Halt the entire traversal.
InterruptWith(Any)
Halt the entire traversal and return a payload to the caller.
Implementations§
Source§impl WalkResult
impl WalkResult
Sourcepub fn interrupt_with<T: Into<Any>>(payload: T) -> Self
pub fn interrupt_with<T: Into<Any>>(payload: T) -> Self
Halt traversal with an FFI-compatible payload.
Trait Implementations§
Source§impl IntoWalkResult for WalkResult
impl IntoWalkResult for WalkResult
fn into_walk_result(self) -> Result<WalkResult>
Auto Trait Implementations§
impl !Send for WalkResult
impl !Sync for WalkResult
impl Freeze for WalkResult
impl RefUnwindSafe for WalkResult
impl Unpin for WalkResult
impl UnsafeUnpin for WalkResult
impl UnwindSafe for WalkResult
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