pub trait OptionMulAssign<Rhs = Self, InnerRhs = Rhs> {
    fn opt_mul_assign(&mut self, rhs: Rhs);
}
Expand description

Trait for values and Options multiplication assignment.

Implementing this trait leads to the following auto-implementations:

  • OptionMulAssign<Option<InnerRhs>> for T.
  • OptionMulAssign<Rhs> for Option<T>.
  • OptionMulAssign<Option<InnerRhs>> for Option<T>.
  • … and some variants with references.

This trait is auto-implemented for OptionOperations types implementing Mul<Rhs>.

Required Methods

Performs the multiplication assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types

Implementors