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: f32) -> f32

Source§

impl ElementAdd for f64

Source§

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

Source§

impl ElementAdd for flex32

Source§

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

Source§

impl ElementAdd for i8

Source§

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

Source§

impl ElementAdd for i16

Source§

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

Source§

impl ElementAdd for i32

Source§

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

Source§

impl ElementAdd for i64

Source§

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

Source§

impl ElementAdd for u8

Source§

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

Source§

impl ElementAdd for u16

Source§

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

Source§

impl ElementAdd for u32

Source§

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

Source§

impl ElementAdd for u64

Source§

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

Implementors§