Trait Option Rem
pub trait OptionRem<Rhs = Self, InnerRhs = Rhs> {
type Output;
// Required method
fn opt_rem(self, rhs: Rhs) -> Option<Self::Output>;
}Expand description
Trait for values and Options remainder.
Implementing this trait leads to the following auto-implementations:
OptionRem<Option<InnerRhs>>forT.OptionRem<Rhs>forOption<T>.OptionRem<Option<InnerRhs>>forOption<T>.- … and some variants with references.
This trait is auto-implemented for OptionOperations types implementing
Rem<Rhs>.
Required Associated Types§
type Output
type Output
The resulting inner type after applying the remainder.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".