Trait UncheckedAdd

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

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

Addition without checking for overflow.

§Panics

Panics if the result overflows.

Required Associated Types§

Required Methods§

Source

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

Implementors§