Trait alga::general::Identity[][src]

pub trait Identity<O: Operator> {
    fn identity() -> Self;

    fn id(_: O) -> Self
    where
        Self: Sized
, { ... } }

A type that is equipped with identity.

Required methods

fn identity() -> Self[src]

The identity element.

Loading content...

Provided methods

fn id(_: O) -> Self where
    Self: Sized
[src]

Specific identity.

Loading content...

Implementations on Foreign Types

impl Identity<Additive> for u8[src]

impl Identity<Additive> for u16[src]

impl Identity<Additive> for u32[src]

impl Identity<Additive> for u64[src]

impl Identity<Additive> for u128[src]

impl Identity<Additive> for usize[src]

impl Identity<Additive> for i8[src]

impl Identity<Additive> for i16[src]

impl Identity<Additive> for i32[src]

impl Identity<Additive> for i64[src]

impl Identity<Additive> for i128[src]

impl Identity<Additive> for isize[src]

impl Identity<Additive> for f32[src]

impl Identity<Additive> for f64[src]

impl Identity<Multiplicative> for u8[src]

impl Identity<Multiplicative> for u16[src]

impl Identity<Multiplicative> for u32[src]

impl Identity<Multiplicative> for u64[src]

impl Identity<Multiplicative> for u128[src]

impl Identity<Multiplicative> for usize[src]

impl Identity<Multiplicative> for i8[src]

impl Identity<Multiplicative> for i16[src]

impl Identity<Multiplicative> for i32[src]

impl Identity<Multiplicative> for i64[src]

impl Identity<Multiplicative> for i128[src]

impl Identity<Multiplicative> for isize[src]

impl Identity<Multiplicative> for f32[src]

impl Identity<Multiplicative> for f64[src]

impl<N: Identity<Additive>> Identity<Additive> for Complex<N>[src]

impl<N: Num + Clone> Identity<Multiplicative> for Complex<N>[src]

Loading content...

Implementors

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

Loading content...