Trait enso_prelude::monoid::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
Repeat a value n times. Given that this works on a Monoid it will not fail if you request 0 or fewer repetitions.