pub struct RewriteRule {
pub lhs: Expr,
pub rhs: Expr,
pub name: String,
}Expand description
A rewrite rule: lhs → rhs (both closed expressions).
Fields§
§lhs: ExprLeft-hand side pattern.
rhs: ExprRight-hand side replacement.
name: StringHuman-readable name for the rule.
Implementations§
Trait Implementations§
Source§impl Clone for RewriteRule
impl Clone for RewriteRule
Auto Trait Implementations§
impl !Send for RewriteRule
impl !Sync for RewriteRule
impl Forget for RewriteRule
impl Freeze for RewriteRule
impl Move for RewriteRule
impl RefUnwindSafe 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