TryAdd

Trait TryAdd 

Source
pub trait TryAdd<RHS = Self> {
    type Output;
    type Err;

    // Required method
    fn try_add(self, rhs: RHS) -> Result<Self::Output, Self::Err>;
}
Expand description

Fallible addition trait.

Required Associated Types§

Required Methods§

Source

fn try_add(self, rhs: RHS) -> Result<Self::Output, Self::Err>

Implementations on Foreign Types§

Source§

impl TryAdd for i8

Source§

impl TryAdd for i16

Source§

impl TryAdd for i32

Source§

impl TryAdd for i64

Source§

impl TryAdd for isize

Source§

impl TryAdd for u8

Source§

impl TryAdd for u16

Source§

impl TryAdd for u32

Source§

impl TryAdd for u64

Source§

impl TryAdd for usize

Implementors§