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
Required methods
fn checked_sub(&self, rhs: Rhs) -> CtOption<Self>
fn checked_sub(&self, rhs: Rhs) -> CtOption<Self>
Perform checked subtraction, returning a CtOption
which is_some
only if the operation did not underflow.