pub enum RewriteStrategy {
Innermost,
Outermost,
BottomUp,
TopDown,
FixpointPerNode,
GlobalFixpoint,
}Expand description
Rewriting strategy controlling traversal order and application.
Variants§
Innermost
Apply rules from innermost subexpressions outward (bottom-up)
Outermost
Apply rules from outermost expression inward (top-down)
BottomUp
Bottom-up traversal: transform children before parents
TopDown
Top-down traversal: transform parents before children
FixpointPerNode
Apply all rules at each node before descending
GlobalFixpoint
Apply rules until global fixpoint (no changes anywhere)
Trait Implementations§
Source§impl Clone for RewriteStrategy
impl Clone for RewriteStrategy
Source§fn clone(&self) -> RewriteStrategy
fn clone(&self) -> RewriteStrategy
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 RewriteStrategy
impl Debug for RewriteStrategy
Source§impl Default for RewriteStrategy
impl Default for RewriteStrategy
Source§fn default() -> RewriteStrategy
fn default() -> RewriteStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for RewriteStrategy
impl PartialEq for RewriteStrategy
impl Copy for RewriteStrategy
impl Eq for RewriteStrategy
impl StructuralPartialEq for RewriteStrategy
Auto Trait Implementations§
impl Freeze for RewriteStrategy
impl RefUnwindSafe for RewriteStrategy
impl Send for RewriteStrategy
impl Sync for RewriteStrategy
impl Unpin for RewriteStrategy
impl UnwindSafe for RewriteStrategy
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