pub struct NfRuleRef<'a, G, M> {
pub lhs: &'a [(G, M)],
pub rhs: &'a [(G, M)],
}Expand description
A borrowed view of a ground AC rewrite rule, the form the completion hot loop lends to
every normalization: the round’s rule table owns each lhs/rhs once and hands out
Copy views, with no per-call deep copies. The allocating
normalize_ms/normalize_set/normalize_nilpotent wrappers keep accepting owned
NfRules for tests and diagnostics and build the views internally.
Fields§
§lhs: &'a [(G, M)]§rhs: &'a [(G, M)]Trait Implementations§
impl<'a, G: Copy, M: Copy> Copy for NfRuleRef<'a, G, M>
Auto Trait Implementations§
impl<'a, G, M> Freeze for NfRuleRef<'a, G, M>
impl<'a, G, M> RefUnwindSafe for NfRuleRef<'a, G, M>where
&'a [(G, M)]: RefUnwindSafe,
impl<'a, G, M> Send for NfRuleRef<'a, G, M>
impl<'a, G, M> Sync for NfRuleRef<'a, G, M>
impl<'a, G, M> Unpin for NfRuleRef<'a, G, M>
impl<'a, G, M> UnsafeUnpin for NfRuleRef<'a, G, M>where
&'a [(G, M)]: UnsafeUnpin,
impl<'a, G, M> UnwindSafe for NfRuleRef<'a, G, M>where
&'a [(G, M)]: 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