pub struct AdvancedRewriteSystem { /* private fields */ }Expand description
Advanced rewrite system with sophisticated control flow.
Implementations§
Source§impl AdvancedRewriteSystem
impl AdvancedRewriteSystem
Sourcepub fn with_config(config: RewriteConfig) -> Self
pub fn with_config(config: RewriteConfig) -> Self
Create with custom configuration.
Sourcepub fn add_rule(self, rule: ConditionalRule) -> Self
pub fn add_rule(self, rule: ConditionalRule) -> Self
Add a rule to the system.
Sourcepub fn apply(&mut self, expr: &TLExpr) -> (TLExpr, RewriteStats)
pub fn apply(&mut self, expr: &TLExpr) -> (TLExpr, RewriteStats)
Apply rules to an expression according to the configured strategy.
Sourcepub fn rule_statistics(&self) -> Vec<(&str, usize)>
pub fn rule_statistics(&self) -> Vec<(&str, usize)>
Get statistics for all rules.
Sourcepub fn reset_statistics(&mut self)
pub fn reset_statistics(&mut self)
Reset all rule counters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedRewriteSystem
impl RefUnwindSafe for AdvancedRewriteSystem
impl Send for AdvancedRewriteSystem
impl Sync for AdvancedRewriteSystem
impl Unpin for AdvancedRewriteSystem
impl UnwindSafe for AdvancedRewriteSystem
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