TryAdd

Trait TryAdd 

Source
pub trait TryAdd: Sized {
    // Required method
    fn try_add(self, rhs: Self) -> Result<Self>;
}

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TryAdd for i32

Source§

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

Source§

impl TryAdd for i64

Source§

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

Source§

impl TryAdd for i128

Source§

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

Source§

impl TryAdd for u32

Source§

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

Source§

impl TryAdd for u64

Source§

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

Source§

impl TryAdd for u128

Source§

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

Implementors§