Trait IndexGetExt

Source
pub trait IndexGetExt<T>: TupleIndex {
    type ElementType;

    // Required methods
    fn get_impl<'a>(x: &'a T) -> &'a Self::ElementType;
    fn get_mut_impl<'a>(x: &'a mut T) -> &'a mut Self::ElementType;
}

Required Associated Types§

Required Methods§

Source

fn get_impl<'a>(x: &'a T) -> &'a Self::ElementType

Source

fn get_mut_impl<'a>(x: &'a mut T) -> &'a mut Self::ElementType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§