pub trait IndexRaw<Idx> {
    type Output: ?Sized;

    fn index_raw(this: Ref<'_, Self>, index: Idx) -> Ref<'_, Self::Output>;
    unsafe fn index_raw_unchecked(
        this: Ref<'_, Self>,
        index: Idx
    ) -> Ref<'_, Self::Output>; }
Expand description

A variant of Index that works with raw references.

Required Associated Types

The returned type after indexing.

Required Methods

Performs the indexing (container[index]) operation.

Panics

May panic if the index is out of bounds.

Performs the indexing (container[index]) operation without performing bounds checking

Safety

index must be in bounds for this.

Implementations on Foreign Types

Implementors