Normalizable

Trait Normalizable 

Source
pub trait Normalizable {
    // Required method
    fn normalize(&mut self);

    // Provided methods
    fn is_normal(&self) -> bool
       where Self: Clone + Eq { ... }
    fn eqn(&self, other: &Self) -> bool
       where Self: Eq + Clone { ... }
}
Expand description

A term that can be normalized

Required Methods§

Source

fn normalize(&mut self)

Provided Methods§

Source

fn is_normal(&self) -> bool
where Self: Clone + Eq,

Check if it is in normal form by syntactic equality

Source

fn eqn(&self, other: &Self) -> bool
where Self: Eq + Clone,

Equality modulo normalization

Implementors§

Source§

impl<T: Ord + Clone> Normalizable for Bin<T>

Remove all zero elements (0*a + c = c)

Source§

impl<T: Ord + Clone> Normalizable for Lin<T>

Remove all zero elements (0*a + c = c)

Source§

impl<T: Ord + Clone> Normalizable for Dyadic<T>

Source§

impl<T: Ord> Normalizable for Mono<T>