Trait crypto_bigint::prelude::CheckedSub[][src]

pub trait CheckedSub<Rhs = Self>: Sized {
    type Output;
    fn checked_sub(&self, rhs: Rhs) -> CtOption<Self>;
}
Expand description

Checked substraction.

Associated Types

Output type.

Required methods

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

Implementors