Trait crypto_bigint::CheckedAdd [−][src]
pub trait CheckedAdd<Rhs = Self>: Sized {
type Output;
fn checked_add(&self, rhs: Rhs) -> CtOption<Self>;
}
Expand description
Checked addition.
Associated Types
Required methods
fn checked_add(&self, rhs: Rhs) -> CtOption<Self>
fn checked_add(&self, rhs: Rhs) -> CtOption<Self>
Perform checked subtraction, returning a CtOption
which is_some
only if the operation did not overflow.