Trait option_operations::div::OptionDiv
source · pub trait OptionDiv<Rhs = Self, InnerRhs = Rhs> {
type Output;
// Required method
fn opt_div(self, rhs: Rhs) -> Option<Self::Output>;
}
Expand description
Trait for values and Option
s division.
Implementing this trait leads to the following auto-implementations:
OptionDiv<Option<InnerRhs>>
forT
.OptionDiv<Rhs>
forOption<T>
.OptionDiv<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
This trait is auto-implemented for OptionOperations
types implementing
Div<Rhs>
.