Add

Trait Add 

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

Required Methods§

Source

fn add(self, rhs: Self) -> 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 Add for bool

Source§

fn add(self, rhs: bool) -> bool

Source§

impl Add for char

Source§

fn add(self, rhs: char) -> char

Source§

impl Add for f32

Source§

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

Source§

impl Add for f64

Source§

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

Source§

impl Add for i8

Source§

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

Source§

impl Add for i16

Source§

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

Source§

impl Add for i32

Source§

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

Source§

impl Add for i64

Source§

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

Source§

impl Add for i128

Source§

fn add(self, rhs: i128) -> i128

Source§

impl Add for isize

Source§

fn add(self, rhs: isize) -> isize

Source§

impl Add for u8

Source§

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

Source§

impl Add for u16

Source§

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

Source§

impl Add for u32

Source§

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

Source§

impl Add for u64

Source§

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

Source§

impl Add for u128

Source§

fn add(self, rhs: u128) -> u128

Source§

impl Add for ()

Source§

fn add(self, _: ())

Source§

impl Add for usize

Source§

fn add(self, rhs: usize) -> usize

Source§

impl Add for String

Source§

fn add(self, rhs: String) -> String

Source§

impl<K, V> Add for BTreeMap<K, V>
where K: Add + Ord, V: Add,

Source§

fn add(self, rhs: BTreeMap<K, V>) -> BTreeMap<K, V>

Source§

impl<K, V> Add for HashMap<K, V>
where K: Add + Eq + Hash, V: Add,

Source§

fn add(self, rhs: HashMap<K, V>) -> HashMap<K, V>

Source§

impl<T> Add for Option<T>
where T: Add + Add<Output = T>,

Source§

fn add(self, rhs: Option<T>) -> Option<T>

Source§

impl<T> Add for BTreeSet<T>
where T: Add + Ord,

Source§

fn add(self, rhs: BTreeSet<T>) -> BTreeSet<T>

Source§

impl<T> Add for LinkedList<T>
where T: Add,

Source§

fn add(self, rhs: LinkedList<T>) -> LinkedList<T>

Source§

impl<T> Add for VecDeque<T>
where T: Add,

Source§

fn add(self, rhs: VecDeque<T>) -> VecDeque<T>

Source§

impl<T> Add for Vec<T>
where T: Add,

Source§

fn add(self, rhs: Vec<T>) -> Vec<T>

Source§

impl<T> Add for HashSet<T>
where T: Add + Eq + Hash,

Source§

fn add(self, rhs: HashSet<T>) -> HashSet<T>

Implementors§