Trait std::tuple::CopyableTuple

pub trait CopyableTuple<T, U> {
    fn first(&self) -> T;
    fn second(&self) -> U;
    fn swap(&self) -> (U, T);
}

Method extensions to pairs where both types satisfy the Clone bound

Required Methods

fn first(&self) -> T

Return the first element of self

fn second(&self) -> U

Return the second element of self

fn swap(&self) -> (U, T)

Return the results of swapping the two elements of self

Implementors