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