pub enum EventNoPred {
Init {
root: usize,
},
Previsit {
node: usize,
root: usize,
depth: usize,
},
Revisit {
node: usize,
root: usize,
depth: usize,
},
Done {
root: usize,
},
}
Expand description
Types of callback events generated during depth-first visits not keeping track of parent nodes.
Variants§
Init
This event should be used to set up state at the start of the visit.
Note that this event will not happen if the visit is empty, that is, all of the roots are already visited or filtered.
Previsit
The node has been encountered for the first time: we are traversing a new tree arc, unless all fields are equal to the root.
Fields
Revisit
The node has been encountered before: we are traversing a back arc, a forward arc, or a cross arc.
Fields
Done
The visit has been completed.
Note that this event will not happen if the visit is empty (that is, if the root has already been visited) or if the visit is stopped by a callback returning an error.
Trait Implementations§
Source§impl Clone for EventNoPred
impl Clone for EventNoPred
Source§fn clone(&self) -> EventNoPred
fn clone(&self) -> EventNoPred
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventNoPred
impl Debug for EventNoPred
Source§impl Event for EventNoPred
impl Event for EventNoPred
Source§type FilterArgs = FilterArgsNoPred
type FilterArgs = FilterArgsNoPred
The type passed as input to the filter.
Source§impl Hash for EventNoPred
impl Hash for EventNoPred
Source§impl PartialEq for EventNoPred
impl PartialEq for EventNoPred
impl Eq for EventNoPred
impl StructuralPartialEq for EventNoPred
Auto Trait Implementations§
impl Freeze for EventNoPred
impl RefUnwindSafe for EventNoPred
impl Send for EventNoPred
impl Sync for EventNoPred
impl Unpin for EventNoPred
impl UnwindSafe for EventNoPred
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.