[][src]Trait alga::general::AbstractMagma

pub trait AbstractMagma<O: Operator>: Sized + Clone {
    fn operate(&self, right: &Self) -> Self;

    fn op(&self, _: O, lhs: &Self) -> Self { ... }
}

Types that are closed under a given operator.

a, b ∈ Self ⇒ a ∘ b ∈ Self

Required Methods

Performs an operation.

Provided Methods

Performs specific operation.

Implementations on Foreign Types

impl AbstractMagma<Additive> for u8
[src]

impl AbstractMagma<Additive> for u16
[src]

impl AbstractMagma<Additive> for u32
[src]

impl AbstractMagma<Additive> for u64
[src]

impl AbstractMagma<Additive> for usize
[src]

impl AbstractMagma<Additive> for i8
[src]

impl AbstractMagma<Additive> for i16
[src]

impl AbstractMagma<Additive> for i32
[src]

impl AbstractMagma<Additive> for i64
[src]

impl AbstractMagma<Additive> for isize
[src]

impl AbstractMagma<Additive> for f32
[src]

impl AbstractMagma<Additive> for f64
[src]

impl AbstractMagma<Multiplicative> for u8
[src]

impl AbstractMagma<Multiplicative> for u16
[src]

impl AbstractMagma<Multiplicative> for u32
[src]

impl AbstractMagma<Multiplicative> for u64
[src]

impl AbstractMagma<Multiplicative> for usize
[src]

impl AbstractMagma<Multiplicative> for i8
[src]

impl AbstractMagma<Multiplicative> for i16
[src]

impl AbstractMagma<Multiplicative> for i32
[src]

impl AbstractMagma<Multiplicative> for i64
[src]

impl AbstractMagma<Multiplicative> for isize
[src]

impl AbstractMagma<Multiplicative> for f32
[src]

impl AbstractMagma<Multiplicative> for f64
[src]

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

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

Implementors

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