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