snarkvm_console_network_environment::traits::arithmetic

Trait SubSaturating

Source
pub trait SubSaturating<Rhs: ?Sized = Self> {
    type Output;

    // Required method
    fn sub_saturating(&self, rhs: &Rhs) -> Self::Output;
}
Expand description

Binary operator for subtracting two values, bounding the difference to MIN if an underflow occurs.

Required Associated Types§

Required Methods§

Source

fn sub_saturating(&self, rhs: &Rhs) -> Self::Output

Implementors§