pub struct NfRule<G, M> {
pub lhs: Vec<(G, M)>,
pub rhs: Vec<(G, M)>,
}Expand description
A ground AC rewrite rule +lhs → +rhs, both monomials, oriented lhs ≫ rhs by
monomial_cmp. rhs is the minimal monomial of lhs’s e-class (its
normal-form representative) — not a bare fresh class id, which would reintroduce
an atom every critical pair and diverge (design doc §6b).
Fields§
§lhs: Vec<(G, M)>§rhs: Vec<(G, M)>Trait Implementations§
Auto Trait Implementations§
impl<G, M> Freeze for NfRule<G, M>
impl<G, M> RefUnwindSafe for NfRule<G, M>
impl<G, M> Send for NfRule<G, M>
impl<G, M> Sync for NfRule<G, M>
impl<G, M> Unpin for NfRule<G, M>
impl<G, M> UnsafeUnpin for NfRule<G, M>
impl<G, M> UnwindSafe for NfRule<G, M>
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