Trait option_operations::rem::OptionRemAssign [−][src]
pub trait OptionRemAssign<Rhs, InnerRhs = Rhs> {
fn opt_rem_assign(&mut self, rhs: Rhs);
}Expand description
Trait for values and Options remainder assignment.
Implementing this type 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 RemAssign<Rhs>.
Required methods
fn 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 0.