[][src]Trait maths_traits::algebra::group_like::additive::AddCommutative

pub trait AddCommutative { }

A marker trait for stucts whose addition operation is order independent, ie x+y=y+x for all x, y, and z.

This is an extremely common property, and most commonly used algebraic systems have it. Nonetheless, there are also a fairly number of algebraic constructions do not, such as matrix multiplication, most finite groups, and in particular, string concatenation.

Note however, it is highly recommended to implement non-commutative structs (except string concatentation) as multiplicative to be consistent with convention.

Implementations on Foreign Types

impl AddCommutative for usize[src]

impl AddCommutative for Wrapping<usize>[src]

impl AddCommutative for u8[src]

impl AddCommutative for Wrapping<u8>[src]

impl AddCommutative for u16[src]

impl AddCommutative for Wrapping<u16>[src]

impl AddCommutative for u32[src]

impl AddCommutative for Wrapping<u32>[src]

impl AddCommutative for u64[src]

impl AddCommutative for Wrapping<u64>[src]

impl AddCommutative for u128[src]

impl AddCommutative for Wrapping<u128>[src]

impl AddCommutative for isize[src]

impl AddCommutative for Wrapping<isize>[src]

impl AddCommutative for i8[src]

impl AddCommutative for Wrapping<i8>[src]

impl AddCommutative for i16[src]

impl AddCommutative for Wrapping<i16>[src]

impl AddCommutative for i32[src]

impl AddCommutative for Wrapping<i32>[src]

impl AddCommutative for i64[src]

impl AddCommutative for Wrapping<i64>[src]

impl AddCommutative for i128[src]

impl AddCommutative for Wrapping<i128>[src]

impl AddCommutative for f32[src]

impl AddCommutative for f64[src]

Loading content...

Implementors

Loading content...