Trait tuple::TupleElements [] [src]

pub trait TupleElements {
    type Element;

    const N: usize;

    fn elements(&self) -> Elements<&Self>;
    fn get(&self, n: usize) -> Option<&Self::Element>;
    fn get_mut(&mut self, n: usize) -> Option<&mut Self::Element>;
}

Associated Types

Associated Constants

N: usize

Required Methods

returns an Iterator over the elements of the tuple

attempt to access the n-th element

attempt to access the n-th element mutablbly.

Implementors