Slice

Trait Slice 

Source
pub trait Slice:
    Slice
    + AsSlice
    + Pointee<Metadata = usize>
    + IndexMut<usize, Output = <[<Self as AsSlice>::Elem] as Index<usize>>::Output>
    + IndexMut<Range<usize>, Output = <[<Self as AsSlice>::Elem] as Index<Range<usize>>>::Output>
    + IndexMut<RangeInclusive<usize>, Output = <[<Self as AsSlice>::Elem] as Index<RangeInclusive<usize>>>::Output>
    + IndexMut<RangeFrom<usize>, Output = <[<Self as AsSlice>::Elem] as Index<RangeFrom<usize>>>::Output>
    + IndexMut<RangeTo<usize>, Output = <[<Self as AsSlice>::Elem] as Index<RangeTo<usize>>>::Output>
    + IndexMut<RangeToInclusive<usize>, Output = <[<Self as AsSlice>::Elem] as Index<RangeToInclusive<usize>>>::Output>
    + IndexMut<RangeFull, Output = <[<Self as AsSlice>::Elem] as Index<RangeFull>>::Output> { }
Expand description

A trait for a slice [Self::Elem]

Implementations on Foreign Types§

Source§

impl<T> Slice for [T]

Implementors§