Trait UncheckedSub

Source
pub trait UncheckedSub<Rhs = Self> {
    type Output;

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

Subtraction without checking for overflow.

§Panics

Panics if the result overflows.

Required Associated Types§

Required Methods§

Source

const fn unchecked_sub(self, rhs: Rhs) -> Self::Output

Implementors§