pub trait RewriteRuleExt: RewriteRule + Sized {
// Provided method
fn then<R: RewriteRule>(self, other: R) -> (Self, R) { ... }
}
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: RewriteRule>(self, other: R) -> (Self, R)
fn then<R: RewriteRule>(self, other: R) -> (Self, R)
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.