Trait CheckedDiv
Source pub trait CheckedDiv<RHS = Self> {
type Output;
// Required method
fn checked_div(self, other: RHS) -> Option<Self::Output>;
}
Expand description
Divides two numbers, returning None if the result is not representable.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.
This is a wrapper over the checked_div functions in the standard library, for
example this one.