[][src]Trait un_algebra::group::add_group::AddGroup

pub trait AddGroup: AddMonoid {
    fn negate(&self) -> Self;

    fn sub(&self, other: &Self) -> Self { ... }
}

An algebraic additive group.

Required methods

fn negate(&self) -> Self

The unique additive inverse of a group element.

Loading content...

Provided methods

fn sub(&self, other: &Self) -> Self

The additive "subtraction" of two group elements.

Loading content...

Implementations on Foreign Types

impl AddGroup for i8[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for i16[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for i32[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for i64[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for i128[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for isize[src]

fn negate(&self) -> Self[src]

Additive group negation uses "wrapping" negate to avoid overflow and guarantee the closure axiom.

impl AddGroup for f32[src]

impl AddGroup for f64[src]

impl AddGroup for ()[src]

0-tuples form an additive group.

fn negate(&self) -> Self[src]

Negated value can only be ().

impl<A: AddGroup> AddGroup for (A,)[src]

1-tuples form an additive group when their items do.

fn negate(&self) -> Self[src]

Negation is by element type.

impl<A: AddGroup, B: AddGroup> AddGroup for (A, B)[src]

2-tuples form an additive group when their items do.

fn negate(&self) -> Self[src]

Negation is by element type.

impl<A: AddGroup, B: AddGroup, C: AddGroup> AddGroup for (A, B, C)[src]

3-tuples form an additive group when their items do.

fn negate(&self) -> Self[src]

Negation is by element type.

impl<T: Copy + AddGroup> AddGroup for [T; 0][src]

impl<T: Copy + AddGroup> AddGroup for [T; 1][src]

impl<T: Copy + AddGroup> AddGroup for [T; 2][src]

impl<T: Copy + AddGroup> AddGroup for [T; 3][src]

impl<T: Copy + AddGroup> AddGroup for [T; 4][src]

impl<T: Copy + AddGroup> AddGroup for [T; 5][src]

impl<T: Copy + AddGroup> AddGroup for [T; 6][src]

impl<T: Copy + AddGroup> AddGroup for [T; 7][src]

impl<T: Copy + AddGroup> AddGroup for [T; 8][src]

impl<T: Copy + AddGroup> AddGroup for [T; 9][src]

impl<T: Copy + AddGroup> AddGroup for [T; 10][src]

impl<T: Copy + AddGroup> AddGroup for [T; 11][src]

impl<T: Copy + AddGroup> AddGroup for [T; 12][src]

impl<T: Copy + AddGroup> AddGroup for [T; 13][src]

impl<T: Copy + AddGroup> AddGroup for [T; 14][src]

impl<T: Copy + AddGroup> AddGroup for [T; 15][src]

impl<T: Copy + AddGroup> AddGroup for [T; 16][src]

Loading content...

Implementors

Loading content...