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

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

Checked substraction.

Required Associated Types§

Output type.

Required Methods§

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

Implementors§