Trait option_operations::mul::OptionMulAssign
source · pub trait OptionMulAssign<Rhs = Self, InnerRhs = Rhs> {
// Required method
fn opt_mul_assign(&mut self, rhs: Rhs);
}
Expand description
Trait for values and Option
s multiplication assignment.
Implementing this trait leads to the following auto-implementations:
OptionMulAssign<Option<InnerRhs>>
forT
.OptionMulAssign<Rhs>
forOption<T>
.OptionMulAssign<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
This trait is auto-implemented for OptionOperations
types implementing
Mul<Rhs>
.
Required Methods§
sourcefn opt_mul_assign(&mut self, rhs: Rhs)
fn opt_mul_assign(&mut self, rhs: Rhs)
Performs the multiplication assignment.
self
is unchanged if rhs
is None
.