Skip to main content

NfRule

Struct NfRule 

Source
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§

Source§

impl<'a, G, M> From<&'a NfRule<G, M>> for NfRuleRef<'a, G, M>

Source§

fn from(r: &'a NfRule<G, M>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<G, M> Freeze for NfRule<G, M>
where Vec<(G, M)>: Freeze,

§

impl<G, M> RefUnwindSafe for NfRule<G, M>

§

impl<G, M> Send for NfRule<G, M>
where Vec<(G, M)>: Send,

§

impl<G, M> Sync for NfRule<G, M>
where Vec<(G, M)>: Sync,

§

impl<G, M> Unpin for NfRule<G, M>
where Vec<(G, M)>: Unpin,

§

impl<G, M> UnsafeUnpin for NfRule<G, M>

§

impl<G, M> UnwindSafe for NfRule<G, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.