pub trait TupleIndexExt: Sized {
    type IndexMax: TupleIndex;

    // Required methods
    fn size_tuple() -> usize;
    fn size(&self) -> usize;

    // Provided methods
    fn get<I: TupleIndex>(&self) -> &<Self as TupleGetIndexExt<I>>::ElementType
       where Self: TupleGetIndexExt<I> { ... }
    fn get_mut<I: TupleIndex>(
        &mut self
    ) -> &mut <Self as TupleGetIndexExt<I>>::ElementType
       where Self: TupleGetIndexExt<I> { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

source

fn get<I: TupleIndex>(&self) -> &<Self as TupleGetIndexExt<I>>::ElementType
where Self: TupleGetIndexExt<I>,

source

fn get_mut<I: TupleIndex>( &mut self ) -> &mut <Self as TupleGetIndexExt<I>>::ElementType
where Self: TupleGetIndexExt<I>,

Object Safety§

This trait is not object safe.

Implementors§