Trait enso_prelude::Monoid[][src]

pub trait Monoid: Default + Semigroup {
    fn times_mut(&mut self, n: usize) { ... }
fn times(&self, n: usize) -> Self { ... } }
Expand description

Mutable Monoid definition.

Provided methods

fn times_mut(&mut self, n: usize)[src]

Repeat a value n times. Given that this works on a Monoid it will not fail if you request 0 or fewer repetitions.

fn times(&self, n: usize) -> Self[src]

Implementors

impl<T> Monoid for T where
    T: Default + Semigroup
[src]