Trait std::tuple::ImmutableTuple

pub trait ImmutableTuple<T, U> {
    fn first_ref<'a>(&'a self) -> &'a T;
    fn second_ref<'a>(&'a self) -> &'a U;
}

Method extensions for pairs where the types don't necessarily satisfy the Clone bound

Required Methods

fn first_ref<'a>(&'a self) -> &'a T

Return a reference to the first element of self

fn second_ref<'a>(&'a self) -> &'a U

Return a reference to the second element of self

Implementors