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

Trait for values and Options remainder assignment.

Implementing this trait leads to the following auto-implementations:

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

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

Required Methods

Performs the remainder assignment.

self is unchanged if rhs is None.

Panics

Most implementations will panic if rhs is zero.

Implementations on Foreign Types

Implementors