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

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

Checked addition.

Required Associated Types

Output type.

Required Methods

Perform checked subtraction, returning a CtOption which is_some only if the operation did not overflow.

Implementors