pub struct RewriteRule {
pub name: String,
pub lhs: String,
pub rhs: String,
pub conditional: bool,
}Expand description
Represents a rewrite rule lhs → rhs.
Fields§
§name: StringThe name of the rule.
lhs: StringA string representation of the LHS pattern.
rhs: StringA string representation of the RHS.
conditional: boolWhether this is a conditional rule (has side conditions).
Implementations§
Source§impl RewriteRule
impl RewriteRule
Auto Trait Implementations§
impl Freeze for RewriteRule
impl RefUnwindSafe for RewriteRule
impl Send for RewriteRule
impl Sync for RewriteRule
impl Unpin for RewriteRule
impl UnsafeUnpin for RewriteRule
impl UnwindSafe for RewriteRule
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