pub struct Rule {
pub lhs: Term,
pub rhs: Term,
}Expand description
A rewrite rule lhs → rhs.
Variables in lhs range over Term::Var(i). The rule is valid when
every variable in rhs also occurs in lhs.
Fields§
§lhs: Term§rhs: TermImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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