[][src]Enum free_algebra::FreeInv

pub enum FreeInv<T: Eq> {
    Id(T),
    Inv(T),
}

Wraps a type T and symbolically inverts elements.

Used for constructing FreeGroup

Variants

Id(T)

Wraps an instance of type T

Inv(T)

The symbolic inverse of an object of type T

Methods

impl<T: Eq> FreeInv<T>[src]

pub fn is_inv(&self) -> bool[src]

Returns true if self is inverted

use free_algebra::FreeInv::*;

assert!(Inv('a').is_inv());
assert!(!Id('a').is_inv());

pub fn is_id(&self) -> bool[src]

Returns true if self is non-inverted

use free_algebra::FreeInv::*;

assert!(Id('a').is_id());
assert!(!Inv('a').is_id());

Trait Implementations

impl<T: Eq> MonoidRule<FreeInv<T>> for InvRule[src]

impl<T: Eq> InvMonoidRule<FreeInv<T>> for InvRule[src]

impl<T: Eq> AssociativeMonoidRule<FreeInv<T>> for InvRule[src]

impl<T: Eq> AsRef<T> for FreeInv<T>[src]

Provides a reference to this type's inner T

Note that this does not convey any information regarding the state of inversion

impl<T: Eq> AsMut<T> for FreeInv<T>[src]

Provides a mutable reference to this type's inner T

Note that this does not convey any information regarding the state of inversion

impl<T: Eq> From<T> for FreeInv<T>[src]

impl<C: Eq, P: One + Neg<Output = P>> From<FreeInv<C>> for FreePow<C, P>[src]

impl<T: Clone + Eq> Clone for FreeInv<T>[src]

impl<T: Copy + Eq> Copy for FreeInv<T>[src]

impl<T: Eq> Eq for FreeInv<T>[src]

impl<T: PartialEq + Eq> PartialEq<FreeInv<T>> for FreeInv<T>[src]

impl<T: Eq> PartialEq<T> for FreeInv<T>[src]

impl<T: Eq + Display> Display for FreeInv<T>[src]

impl<T: Debug + Eq> Debug for FreeInv<T>[src]

impl<T: Eq> Div<FreeInv<T>> for FreeInv<T>[src]

type Output = FreeGroup<T>

The resulting type after applying the / operator.

impl<T: Eq> Div<MonoidalString<FreeInv<T>, InvRule>> for FreeInv<T>[src]

type Output = FreeGroup<T>

The resulting type after applying the / operator.

impl<T: Eq> Mul<FreeInv<T>> for FreeInv<T>[src]

type Output = FreeGroup<T>

The resulting type after applying the * operator.

impl<T: Eq> Mul<MonoidalString<FreeInv<T>, InvRule>> for FreeInv<T>[src]

type Output = FreeGroup<T>

The resulting type after applying the * operator.

impl<T: Hash + Eq> Hash for FreeInv<T>[src]

impl<T: Eq> StructuralPartialEq for FreeInv<T>[src]

impl<T: Eq> StructuralEq for FreeInv<T>[src]

impl<T: Eq> Inv for FreeInv<T>[src]

type Output = Self

The result after applying the operator.

Auto Trait Implementations

impl<T> Send for FreeInv<T> where
    T: Send

impl<T> Sync for FreeInv<T> where
    T: Sync

impl<T> Unpin for FreeInv<T> where
    T: Unpin

impl<T> UnwindSafe for FreeInv<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for FreeInv<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> From<!> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]