AddChecked

Trait AddChecked 

Source
pub trait AddChecked<Rhs = Self>
where Rhs: ?Sized,
{ type Output; // Required method fn add_checked(&self, rhs: &Rhs) -> Self::Output; }
Expand description

Binary operator for adding two values, enforcing an overflow never occurs.

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<E, I> AddChecked for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Output = Integer<E, I>

Source§

fn add_checked( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as AddChecked>::Output

Implementors§