#[non_exhaustive]pub enum WalkControl {
Continue,
SkipSubtree,
Stop,
}Expand description
Control returned by a tree-walk callback.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Continue walking normally.
SkipSubtree
Skip the current directory subtree.
Stop
Stop walking immediately.
Trait Implementations§
Source§impl Clone for WalkControl
impl Clone for WalkControl
Source§fn clone(&self) -> WalkControl
fn clone(&self) -> WalkControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WalkControl
Source§impl Debug for WalkControl
impl Debug for WalkControl
impl Eq for WalkControl
Source§impl PartialEq for WalkControl
impl PartialEq for WalkControl
Source§fn eq(&self, other: &WalkControl) -> bool
fn eq(&self, other: &WalkControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WalkControl
Auto Trait Implementations§
impl Freeze for WalkControl
impl RefUnwindSafe for WalkControl
impl Send for WalkControl
impl Sync for WalkControl
impl Unpin for WalkControl
impl UnsafeUnpin for WalkControl
impl UnwindSafe for WalkControl
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