[][src]Struct alga::general::Id

pub struct Id<O: Operator = Multiplicative> { /* fields omitted */ }

The universal identity element wrt. a given operator, usually noted Id with a context-dependent subscript.

By default, it is the multiplicative identity element. It represents the degenerate set containing only the identity element of any group-like structure. It has no dimension known at compile-time. All its operations are no-ops.


impl<O: Operator> Id<O>[src]

pub fn new() -> Id<O>[src]

Creates a new identity element.

Trait Implementations

impl<O: Operator> AbstractMagma<O> for Id<O>[src]

impl<O: Operator> AbstractQuasigroup<O> for Id<O>[src]

impl<O: Operator> AbstractSemigroup<O> for Id<O>[src]

impl<O: Operator> AbstractLoop<O> for Id<O>[src]

impl<O: Operator> AbstractMonoid<O> for Id<O>[src]

impl<O: Operator> AbstractGroup<O> for Id<O>[src]

impl<O: Operator> AbstractGroupAbelian<O> for Id<O>[src]

impl<O: Operator> Identity<O> for Id<O>[src]

impl<O: Operator> MeetSemilattice for Id<O>[src]

impl<O: Operator> JoinSemilattice for Id<O>[src]

impl<O: Operator> Lattice for Id<O>[src]

impl<O: Operator> TwoSidedInverse<O> for Id<O>[src]

impl<O: Operator, T: PartialEq + Identity<O>> SubsetOf<T> for Id<O>[src]

impl<E: EuclideanSpace> Transformation<E> for Id[src]

impl<E: EuclideanSpace> ProjectiveTransformation<E> for Id[src]

impl<E: EuclideanSpace> AffineTransformation<E> for Id[src]

type Rotation = Id

Type of the first rotation to be applied.

type NonUniformScaling = Id

Type of the non-uniform scaling to be applied.

type Translation = Id

The type of the pure translation part of this affine transformation.

impl<E: EuclideanSpace> Similarity<E> for Id[src]

type Scaling = Id

The type of the pure (uniform) scaling part of this similarity transformation.

impl<E: EuclideanSpace> Isometry<E> for Id[src]

impl<E: EuclideanSpace> DirectIsometry<E> for Id[src]

impl<E: EuclideanSpace> OrthogonalTransformation<E> for Id[src]

impl<E: EuclideanSpace> Scaling<E> for Id[src]

impl<E: EuclideanSpace> Translation<E> for Id[src]

impl<E: EuclideanSpace> Rotation<E> for Id[src]

impl<O: Operator> Clone for Id<O>[src]

impl<O: Operator> Copy for Id<O>[src]

impl<O: Operator> Eq for Id<O>[src]

impl<O: Operator> PartialEq<Id<O>> for Id<O>[src]

impl<O: Operator> PartialOrd<Id<O>> for Id<O>[src]

impl<O: Operator> Display for Id<O>[src]

impl<O: Debug + Operator> Debug for Id<O>[src]

impl Div<Id<Multiplicative>> for Id[src]

type Output = Id

The resulting type after applying the / operator.

impl Add<Id<Additive>> for Id<Additive>[src]

type Output = Id<Additive>

The resulting type after applying the + operator.

impl Mul<Id<Multiplicative>> for Id[src]

type Output = Id

The resulting type after applying the * operator.

impl AddAssign<Id<Additive>> for Id<Additive>[src]

impl MulAssign<Id<Multiplicative>> for Id[src]

impl DivAssign<Id<Multiplicative>> for Id[src]

impl<O: Operator> AbsDiffEq<Id<O>> for Id<O>[src]

type Epsilon = Id<O>

Used for specifying relative comparisons.

impl<O: Operator> RelativeEq<Id<O>> for Id<O>[src]

impl<O: Operator> UlpsEq<Id<O>> for Id<O>[src]

impl Zero for Id<Additive>[src]

impl One for Id[src]

Auto Trait Implementations

impl<O> Send for Id<O> where
    O: Send

impl<O> Sync for Id<O> where
    O: Sync

impl<O> Unpin for Id<O> where
    O: Unpin

impl<O> UnwindSafe for Id<O> where
    O: UnwindSafe

impl<O> RefUnwindSafe for Id<O> where
    O: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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