#[non_exhaustive]pub enum WalkEvent<T> {
Enter(T),
Leave(T),
}Expand description
A step of a Walk.
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.
Enter(T)
Entering an element (before its children).
Leave(T)
Leaving an element (after its children).
Trait Implementations§
impl<T: Copy> Copy for WalkEvent<T>
impl<T: Eq> Eq for WalkEvent<T>
impl<T: PartialEq> StructuralPartialEq for WalkEvent<T>
Auto Trait Implementations§
impl<T> Freeze for WalkEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for WalkEvent<T>where
T: RefUnwindSafe,
impl<T> Send for WalkEvent<T>where
T: Send,
impl<T> Sync for WalkEvent<T>where
T: Sync,
impl<T> Unpin for WalkEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for WalkEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WalkEvent<T>where
T: 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