pub struct Rule<V, Tm> {
pub ctx: Vec<(V, Option<Tm>)>,
pub lhs: Tm,
pub rhs: Tm,
}Expand description
A command that introduces a set of rewrite rules.
Fields§
§ctx: Vec<(V, Option<Tm>)>context (bound variables)
lhs: Tmleft-hand side (pattern to match with)
rhs: Tmright-hand side (term to replace with)
Trait Implementations§
Auto Trait Implementations§
impl<V, Tm> Freeze for Rule<V, Tm>where
Tm: Freeze,
impl<V, Tm> RefUnwindSafe for Rule<V, Tm>where
Tm: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, Tm> Send for Rule<V, Tm>
impl<V, Tm> Sync for Rule<V, Tm>
impl<V, Tm> Unpin for Rule<V, Tm>
impl<V, Tm> UnwindSafe for Rule<V, Tm>where
Tm: UnwindSafe,
V: UnwindSafe,
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