pub trait Mon:
MathType
+ One
+ MonOps
+ MulAssign
+ for<'a> MulAssign<&'a Self>where
for<'a> &'a Self: MonOps<Self>,{
// Provided method
fn product<A, I>(itr: I) -> Self
where Self: MulAssign<A>,
I: IntoIterator<Item = A> { ... }
}Expand description
A multiplicative monoid: a set with associative multiplication · and identity One.
Not assumed commutative.
Provided Methods§
Sourcefn product<A, I>(itr: I) -> Selfwhere
Self: MulAssign<A>,
I: IntoIterator<Item = A>,
fn product<A, I>(itr: I) -> Selfwhere
Self: MulAssign<A>,
I: IntoIterator<Item = A>,
Multiply an iterator of factors into Self, folding with *=.
A is any type for which Self: MulAssign<A> — typically Self or &Self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".