Skip to main content

ElementAdd

Trait ElementAdd 

pub trait ElementAdd {
    // Required method
    fn add(self, other: Self) -> Self;
}
Expand description

Element addition trait.

Required Methods§

fn add(self, other: Self) -> Self

Addition between self and other.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl ElementAdd for f32

§

fn add(self, other: f32) -> f32

§

impl ElementAdd for f64

§

fn add(self, other: f64) -> f64

§

impl ElementAdd for i8

§

fn add(self, other: i8) -> i8

§

impl ElementAdd for i16

§

fn add(self, other: i16) -> i16

§

impl ElementAdd for i32

§

fn add(self, other: i32) -> i32

§

impl ElementAdd for i64

§

fn add(self, other: i64) -> i64

§

impl ElementAdd for u8

§

fn add(self, other: u8) -> u8

§

impl ElementAdd for u16

§

fn add(self, other: u16) -> u16

§

impl ElementAdd for u32

§

fn add(self, other: u32) -> u32

§

impl ElementAdd for u64

§

fn add(self, other: u64) -> u64

Implementors§