enum VisitRecord<'n, N>where
N: NormalizeEq,{
EnterMark(usize),
NodeItem(Identifier<'n, N>, bool),
}Expand description
Record item that used when traversing a TreeNode tree.
Variants§
EnterMark(usize)
Marks the beginning of TreeNode. It contains:
- The post-order index assigned during the first, visiting traversal.
NodeItem(Identifier<'n, N>, bool)
Marks an accumulated subtree. It contains:
- The accumulated identifier of a subtree.
- A accumulated boolean flag if the subtree is valid for CSE. The flag is propagated up from children to parent. (E.g. volatile expressions are not valid and can’t be extracted, but non-volatile children of volatile expressions can be extracted.)
Auto Trait Implementations§
impl<'n, N> Freeze for VisitRecord<'n, N>
impl<'n, N> RefUnwindSafe for VisitRecord<'n, N>where
N: RefUnwindSafe,
impl<'n, N> Send for VisitRecord<'n, N>where
N: Sync,
impl<'n, N> Sync for VisitRecord<'n, N>where
N: Sync,
impl<'n, N> Unpin for VisitRecord<'n, N>
impl<'n, N> UnwindSafe for VisitRecord<'n, N>where
N: RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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