Trait Group

Source
pub trait Group: PartialEq + Neg<Output = Self> {
    // Required methods
    fn identity() -> Self;
    fn operation(a: Self, b: Self) -> Self;
}
Expand description

Set with identity, inverses, and (associative) binary operation

Required Methods§

Source

fn identity() -> Self

Source

fn operation(a: Self, b: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, U> Group for Displacement2<S, U>
where S: AdditiveGroup,

Source§

impl<S, U> Group for Displacement3<S, U>
where S: AdditiveGroup,

Source§

impl<S, U> Group for Displacement4<S, U>
where S: AdditiveGroup,

Source§

impl<S: AdditiveGroup> Group for Vector2<S>

Source§

impl<S: AdditiveGroup> Group for Vector3<S>

Source§

impl<S: AdditiveGroup> Group for Vector4<S>