[−][src]Trait sp_runtime::traits::CheckedDiv
Performs division that returns None
instead of panicking on division by zero and instead of
wrapping around on underflow and overflow.
Required methods
pub fn checked_div(&self, v: &Self) -> Option<Self>
[src]
Divides two numbers, checking for underflow, overflow and division by
zero. If any of that happens, None
is returned.
Implementations on Foreign Types
impl<T> CheckedDiv for Ratio<T> where
T: Clone + Integer + CheckedMul,
[src]
T: Clone + Integer + CheckedMul,