pub trait OptionSub<Rhs = Self, InnerRhs = Rhs> {
type Output;
// Required method
fn opt_sub(self, rhs: Rhs) -> Option<Self::Output>;
}
Expand description
Trait for values and Option
s substraction.
Implementing this trait leads to the following auto-implementations:
OptionSub<Option<InnerRhs>>
forT
.OptionSub<Rhs>
forOption<T>
.OptionSub<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
This trait is auto-implemented for OptionOperations
types implementing
Sub<Rhs>
.
Required Associated Types§
type Output
type Output
The resulting inner type after applying the substraction.