pub trait TupleGet {
    type Output;

    // Required methods
    fn get(&self, index: usize) -> &Self::Output;
    fn try_get(&self, index: usize) -> Option<&Self::Output>;
}
Expand description

Get the nth item of the tuple

Required Associated Types§

Required Methods§

source

fn get(&self, index: usize) -> &Self::Output

Get the nth item of the tuple

source

fn try_get(&self, index: usize) -> Option<&Self::Output>

Get the nth item of the tuple

Implementations on Foreign Types§

§

impl<T> TupleGet for (T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

§

impl<T> TupleGet for (T,)

§

type Output = T

§

fn get(&self, index: usize) -> &Self::Output

§

fn try_get(&self, index: usize) -> Option<&Self::Output>

Implementors§