pub trait PartialDiv<Rhs: Sized>: Sized {
    type Output;

    fn partial_div(&self, rhs: &Rhs) -> Option<Self::Output>;
Expand description

Trait to divide values that may not be compatible.

Required Associated Types

The output of a successful division

Required Methods

Divides the values. Returns None if either value is not a type that can divide.

Implementations on Foreign Types