pub trait RewriteRuleExt: Sized + RewriteRule {
// Provided method
fn then<R>(self, other: R) -> (Self, R)
where R: RewriteRule { ... }
}Expand description
Extension trait for composing rewrite rules in a fluent style.
This trait provides a then method that allows chaining rewrite
rules together, creating a pipeline where rules are applied
left-to-right.
Provided Methods§
Sourcefn then<R>(self, other: R) -> (Self, R)where
R: RewriteRule,
fn then<R>(self, other: R) -> (Self, R)where
R: RewriteRule,
Chains this rule with another rule, creating a composite rule
that applies self first, then other.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.