Trait Option Mul
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 Options 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>.
Required Associated Types§
type Output
type Output
The resulting inner type after applying the multiplication.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".