Addition

Trait Addition 

Source
pub trait Addition {
    type Output;

    // Required method
    fn add(self, other: Self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

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

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<T1: Add<Output = T1>> Addition for (T1,)

Source§

type Output = (T1,)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>> Addition for (T1, T2)

Source§

type Output = (T1, T2)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>> Addition for (T1, T2, T3)

Source§

type Output = (T1, T2, T3)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>> Addition for (T1, T2, T3, T4)

Source§

type Output = (T1, T2, T3, T4)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>> Addition for (T1, T2, T3, T4, T5)

Source§

type Output = (T1, T2, T3, T4, T5)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>> Addition for (T1, T2, T3, T4, T5, T6)

Source§

type Output = (T1, T2, T3, T4, T5, T6)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>> Addition for (T1, T2, T3, T4, T5, T6, T7)

Source§

type Output = (T1, T2, T3, T4, T5, T6, T7)

Source§

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

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>, T12: Add<Output = T12>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>, T12: Add<Output = T12>, T13: Add<Output = T13>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>, T12: Add<Output = T12>, T13: Add<Output = T13>, T14: Add<Output = T14>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>, T12: Add<Output = T12>, T13: Add<Output = T13>, T14: Add<Output = T14>, T15: Add<Output = T15>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

impl<T1: Add<Output = T1>, T2: Add<Output = T2>, T3: Add<Output = T3>, T4: Add<Output = T4>, T5: Add<Output = T5>, T6: Add<Output = T6>, T7: Add<Output = T7>, T8: Add<Output = T8>, T9: Add<Output = T9>, T10: Add<Output = T10>, T11: Add<Output = T11>, T12: Add<Output = T12>, T13: Add<Output = T13>, T14: Add<Output = T14>, T15: Add<Output = T15>, T16: Add<Output = T16>> Addition for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

Implementors§