Skip to main content

IndexV2

Trait IndexV2 

Source
pub trait IndexV2<M, I> {
    type Output;

    // Required method
    fn index(
        _self: GenericPointer<Self, M>,
        idx: I,
    ) -> GenericPointer<Self::Output, M>
       where M: DropLeftoversOf<Self, I>;
}
Expand description

Same as core::ops::Index but generic over reference type

Required Associated Types§

Required Methods§

Source

fn index( _self: GenericPointer<Self, M>, idx: I, ) -> GenericPointer<Self::Output, M>
where M: DropLeftoversOf<Self, I>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§