Trait CloneableRefs

Source
pub trait CloneableRefs: Tuple {
    type Cloned;

    // Required method
    fn cloned(this: Self) -> Self::Cloned;
}
Expand description

The trait for a tuple, all elements of which are references to Clone-able values.

The backbone of the Tuple::cloned function.

The associated functions are not to be used directly, instead use the equivalent free-standing functions or methods of the Tuple trait.

Required Associated Types§

Required Methods§

Source

fn cloned(this: Self) -> Self::Cloned

Clone the tuple element-wise, e.g. turn (&T, &U) into (T, U)

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 CloneableRefs for ()

Source§

type Cloned = ()

Source§

fn cloned(this: Self) -> Self::Cloned

Source§

impl<T0: Clone> CloneableRefs for (&T0,)

Source§

type Cloned = (T0,)

Source§

fn cloned(this: Self) -> Self::Cloned

Source§

impl<T0: Clone, T1: Clone> CloneableRefs for (&T0, &T1)

Source§

type Cloned = (T0, T1)

Source§

fn cloned(this: Self) -> Self::Cloned

Source§

impl<T0: Clone, T1: Clone, T2: Clone> CloneableRefs for (&T0, &T1, &T2)

Source§

type Cloned = (T0, T1, T2)

Source§

fn cloned(this: Self) -> Self::Cloned

Source§

impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone> CloneableRefs for (&T0, &T1, &T2, &T3)

Source§

impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone> CloneableRefs for (&T0, &T1, &T2, &T3, &T4)

Source§

impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone, T5: Clone> CloneableRefs for (&T0, &T1, &T2, &T3, &T4, &T5)

Source§

impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone, T5: Clone, T6: Clone> CloneableRefs for (&T0, &T1, &T2, &T3, &T4, &T5, &T6)

Source§

impl<T0: Clone, T1: Clone, T2: Clone, T3: Clone, T4: Clone, T5: Clone, T6: Clone, T7: Clone> CloneableRefs for (&T0, &T1, &T2, &T3, &T4, &T5, &T6, &T7)

Implementors§