struct CSERewriter<'a, 'n, N, C>where
N: NormalizeEq,
C: CSEController<Node = N>,{
node_stats: &'a HashMap<Identifier<'n, N>, NodeEvaluation>,
id_array: &'a Vec<(usize, Option<Identifier<'n, N>>)>,
common_nodes: &'a mut IndexMap<Identifier<'n, N>, (N, String)>,
down_index: usize,
controller: &'a mut C,
}Expand description
Fields§
§node_stats: &'a HashMap<Identifier<'n, N>, NodeEvaluation>statistics of TreeNodes
id_array: &'a Vec<(usize, Option<Identifier<'n, N>>)>cache to speed up second traversal
common_nodes: &'a mut IndexMap<Identifier<'n, N>, (N, String)>common TreeNodes, that are replaced during the second traversal, are collected
to this map
down_index: usize§controller: &'a mut CTrait Implementations§
Source§impl<N, C> TreeNodeRewriter for CSERewriter<'_, '_, N, C>
impl<N, C> TreeNodeRewriter for CSERewriter<'_, '_, N, C>
Auto Trait Implementations§
impl<'a, 'n, N, C> Freeze for CSERewriter<'a, 'n, N, C>
impl<'a, 'n, N, C> RefUnwindSafe for CSERewriter<'a, 'n, N, C>where
C: RefUnwindSafe,
N: RefUnwindSafe,
impl<'a, 'n, N, C> Send for CSERewriter<'a, 'n, N, C>
impl<'a, 'n, N, C> Sync for CSERewriter<'a, 'n, N, C>
impl<'a, 'n, N, C> Unpin for CSERewriter<'a, 'n, N, C>
impl<'a, 'n, N, C> !UnwindSafe for CSERewriter<'a, 'n, N, C>
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