Skip to main content

ElementAdd

Trait ElementAdd 

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

Element addition trait.

Required Methods§

Source

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§

Source§

impl ElementAdd for f32

Source§

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

Source§

impl ElementAdd for f64

Source§

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

Source§

impl ElementAdd for i8

Source§

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

Source§

impl ElementAdd for i16

Source§

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

Source§

impl ElementAdd for i32

Source§

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

Source§

impl ElementAdd for i64

Source§

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

Source§

impl ElementAdd for u8

Source§

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

Source§

impl ElementAdd for u16

Source§

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

Source§

impl ElementAdd for u32

Source§

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

Source§

impl ElementAdd for u64

Source§

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

Implementors§