MultiplicativeMonoid

Trait MultiplicativeMonoid 

Source
pub trait MultiplicativeMonoid:
    Copy
    + PartialEq
    + Mul<Self, Output = Self>
    + MulAssign
    + One {
    // Provided methods
    fn squared(self) -> Self { ... }
    fn cubed(self) -> Self { ... }
}
Expand description

Set with identity represented by one and (associative) binary operation defined by *

Provided Methods§

Source

fn squared(self) -> Self

Source

fn cubed(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<T> MultiplicativeMonoid for T
where T: Copy + PartialEq + Mul<Self, Output = Self> + MulAssign + One,