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