Skip to main content

SafeAdd

Trait SafeAdd 

Source
pub trait SafeAdd {
    // Required method
    fn safe_add(self, rhs: Self) -> Self;
}

Required Methods§

Source

fn safe_add(self, rhs: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SafeAdd for f32

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for f64

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for i8

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for i16

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for i32

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for i64

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for u8

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for u16

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for u32

Source§

fn safe_add(self, rhs: Self) -> Self

Source§

impl SafeAdd for u64

Source§

fn safe_add(self, rhs: Self) -> Self

Implementors§