[][src]Trait mathru::algebra::abstr::One

pub trait One: Sized + Mul<Self, Output = Self> {
    fn one() -> Self;
}

Defines a multiplicative identity element for Self.

Required methods

fn one() -> Self

Returns the multiplicative identity element of Self, 1.

Laws

a * 1 = a       ∀ a ∈ Self
1 * a = a       ∀ a ∈ Self
Loading content...

Implementations on Foreign Types

impl One for usize[src]

impl One for u8[src]

impl One for u16[src]

impl One for u32[src]

impl One for u64[src]

impl One for isize[src]

impl One for i8[src]

impl One for i16[src]

impl One for i32[src]

impl One for i64[src]

impl One for f32[src]

impl One for f64[src]

Loading content...

Implementors

impl<T> One for Complex<T> where
    T: One + Mul<T, Output = T> + Add<T, Output = T> + Sub<T, Output = T> + Copy + Zero
[src]

Returns 1 + i0

Loading content...