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