strided

Trait Strided

Source
pub trait Strided {
    type Elem;

    // Required method
    fn as_stride(&self) -> Stride<'_, Self::Elem>;

    // Provided method
    fn stride(&self) -> usize { ... }
}
Expand description

Things that can be viewed as a series of equally spaced Ts in memory.

Required Associated Types§

Required Methods§

Source

fn as_stride(&self) -> Stride<'_, Self::Elem>

Provided Methods§

Source

fn stride(&self) -> usize

Implementations on Foreign Types§

Source§

impl<T> Strided for [T]

Source§

type Elem = T

Source§

fn as_stride(&self) -> Stride<'_, T>

Source§

fn stride(&self) -> usize

Implementors§

Source§

impl<'a, T> Strided for MutStride<'a, T>

Source§

type Elem = T

Source§

impl<'a, T> Strided for Stride<'a, T>

Source§

type Elem = T

Source§

impl<T, X: Deref<Target = [T]>> Strided for X

Source§

type Elem = T