Trait cfx_storage::utils::tuple::TupleIndexExt
source · 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§
type IndexMax: TupleIndex
Required Methods§
Provided Methods§
fn get<I: TupleIndex>(&self) -> &<Self as TupleGetIndexExt<I>>::ElementTypewhere
Self: TupleGetIndexExt<I>,
fn get_mut<I: TupleIndex>(
&mut self
) -> &mut <Self as TupleGetIndexExt<I>>::ElementTypewhere
Self: TupleGetIndexExt<I>,
Object Safety§
This trait is not object safe.