AsSizedSlice

Trait AsSizedSlice 

Source
pub trait AsSizedSlice<'a, const N: usize> {
    type Entry: 'a;
    type SliceRef: Deref<Target = [Self::Entry; N]>;

    // Required method
    fn as_sized_slice(&'a self) -> Self::SliceRef;
}
Expand description

Can be converted to a slice

Required Associated Types§

Source

type Entry: 'a

Type of the entries of this slice

Source

type SliceRef: Deref<Target = [Self::Entry; N]>

Type of the reference to this slice

Required Methods§

Source

fn as_sized_slice(&'a self) -> Self::SliceRef

Convert to a slice

Implementors§

Source§

impl<'a, T, const N: usize, R> AsSizedSlice<'a, N> for R
where T: 'a, R: Deref<Target = [T; N]> + ?Sized,