pub trait CheckedAdd<Rhs = Self> {
    type Output;

    fn checked_add(self, rhs: Rhs) -> Self::Output;
}
Expand description

Checked addition. Computes self + rhs. Returns None if the result can not be represented by the Output type.

Required Associated Types

The resulting type after applying checked_add.

Required Methods

Returns Some(self + rhs) or None if the result can not be represented by the Output type.

Implementations on Foreign Types

Implementors