Trait const_it::SliceIndex

source ·
pub trait SliceIndex<T: ?Sized>: Sealed {
    type Output: ?Sized;
}
Expand description

This trait is similar to the SliceIndex trait in std/core, but it’s implemented for array types too.

Required Associated Types§

source

type Output: ?Sized

The output type when indexing T with this type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SliceIndex<str> for Range<usize>

§

type Output = str

source§

impl SliceIndex<str> for RangeFrom<usize>

§

type Output = str

source§

impl SliceIndex<str> for RangeFull

§

type Output = str

source§

impl SliceIndex<str> for RangeInclusive<usize>

§

type Output = str

source§

impl SliceIndex<str> for RangeTo<usize>

§

type Output = str

source§

impl SliceIndex<str> for RangeToInclusive<usize>

§

type Output = str

source§

impl<T> SliceIndex<[T]> for usize

§

type Output = T

source§

impl<T> SliceIndex<[T]> for Range<usize>

§

type Output = [T]

source§

impl<T> SliceIndex<[T]> for RangeFrom<usize>

§

type Output = [T]

source§

impl<T> SliceIndex<[T]> for RangeFull

§

type Output = [T]

source§

impl<T> SliceIndex<[T]> for RangeInclusive<usize>

§

type Output = [T]

source§

impl<T> SliceIndex<[T]> for RangeTo<usize>

§

type Output = [T]

source§

impl<T> SliceIndex<[T]> for RangeToInclusive<usize>

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for usize

§

type Output = T

source§

impl<T, const N: usize> SliceIndex<[T; N]> for Range<usize>

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for RangeFrom<usize>

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for RangeFull

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for RangeInclusive<usize>

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for RangeTo<usize>

§

type Output = [T]

source§

impl<T, const N: usize> SliceIndex<[T; N]> for RangeToInclusive<usize>

§

type Output = [T]

Implementors§