pub struct EqRewriteRule {
pub name: Name,
pub lhs: Expr,
pub rhs: Expr,
pub reversible: bool,
}Expand description
An equality-based rewrite rule.
Fields§
§name: NameThe name of this rule.
lhs: ExprLeft-hand side pattern.
rhs: ExprRight-hand side replacement.
reversible: boolWhether this rule can be applied in reverse.
Implementations§
Source§impl EqRewriteRule
impl EqRewriteRule
Trait Implementations§
Source§impl Clone for EqRewriteRule
impl Clone for EqRewriteRule
Source§fn clone(&self) -> EqRewriteRule
fn clone(&self) -> EqRewriteRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EqRewriteRule
impl RefUnwindSafe for EqRewriteRule
impl Send for EqRewriteRule
impl Sync for EqRewriteRule
impl Unpin for EqRewriteRule
impl UnsafeUnpin for EqRewriteRule
impl UnwindSafe for EqRewriteRule
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