[−][src]Enum free_algebra::FreeInv
Wraps a type T
and symbolically inverts elements.
Used for constructing FreeGroup
Variants
Wraps an instance of type 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]
fn apply(string: Vec<FreeInv<T>>, letter: FreeInv<T>) -> Vec<FreeInv<T>>
[src]
fn apply_many(word1: Vec<C>, word2: Vec<C>) -> Vec<C>
[src]
fn apply_iter<I: Iterator<Item = C>>(word: Vec<C>, letters: I) -> Vec<C>
[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.
fn div(self, rhs: Self) -> FreeGroup<T>
[src]
impl<T: Eq> Div<MonoidalString<FreeInv<T>, InvRule>> for FreeInv<T>
[src]
type Output = FreeGroup<T>
The resulting type after applying the /
operator.
fn div(self, rhs: FreeGroup<T>) -> FreeGroup<T>
[src]
impl<T: Eq> Mul<FreeInv<T>> for FreeInv<T>
[src]
type Output = FreeGroup<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> FreeGroup<T>
[src]
impl<T: Eq> Mul<MonoidalString<FreeInv<T>, InvRule>> for FreeInv<T>
[src]
type Output = FreeGroup<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: FreeGroup<T>) -> FreeGroup<T>
[src]
impl<T: Hash + Eq> Hash for FreeInv<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Eq> StructuralPartialEq for FreeInv<T>
[src]
impl<T: Eq> StructuralEq for FreeInv<T>
[src]
impl<T: Eq> Inv for FreeInv<T>
[src]
Auto Trait Implementations
impl<T> Send for FreeInv<T> where
T: Send,
T: Send,
impl<T> Sync for FreeInv<T> where
T: Sync,
T: Sync,
impl<T> Unpin for FreeInv<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for FreeInv<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for FreeInv<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> From<!> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,