pub trait OptionMul<Rhs = Self, InnerRhs = Rhs> {
type Output;
// Required method
fn opt_mul(self, rhs: Rhs) -> Option<Self::Output>;
}
Expand description
Trait for values and Option
s multiplication.
Implementing this trait leads to the following auto-implementations:
OptionMul<Option<InnerRhs>>
forT
.OptionMul<Rhs>
forOption<T>
.OptionMul<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
This trait is auto-implemented for OptionOperations
types implementing
Mul<Rhs>
.