pub struct SimpLemma {
pub name: Name,
pub lhs: Expr,
pub rhs: Expr,
pub direction: SimpDirection,
pub priority: i32,
}Expand description
A single simp lemma: a conditional rewrite rule lhs = rhs.
Fields§
§name: NameName of the lemma.
lhs: ExprLeft-hand side pattern.
rhs: ExprRight-hand side replacement.
direction: SimpDirectionRewrite direction.
priority: i32Priority (higher = preferred).
Implementations§
Source§impl SimpLemma
impl SimpLemma
Sourcepub fn effective_lhs(&self) -> &Expr
pub fn effective_lhs(&self) -> &Expr
Return the effective LHS (after direction is applied).
Sourcepub fn effective_rhs(&self) -> &Expr
pub fn effective_rhs(&self) -> &Expr
Return the effective RHS (after direction is applied).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpLemma
impl RefUnwindSafe for SimpLemma
impl Send for SimpLemma
impl Sync for SimpLemma
impl Unpin for SimpLemma
impl UnsafeUnpin for SimpLemma
impl UnwindSafe for SimpLemma
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