Stride

Trait Stride 

Source
pub trait Stride:
    Seal
    + Debug
    + Copy
    + Send
    + Sync
    + 'static {
    type Rev: Stride<Rev = Self>;

    // Required methods
    fn rev(self) -> Self::Rev;
    fn element_stride(self) -> isize;
}
Expand description

stride distance between two consecutive elements along a given dimension

Required Associated Types§

Source

type Rev: Stride<Rev = Self>

the reversed stride type

Required Methods§

Source

fn rev(self) -> Self::Rev

returns the reversed stride

Source

fn element_stride(self) -> isize

returns the stride in elements

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Stride for isize

Source§

type Rev = isize

Source§

fn rev(self) -> Self::Rev

Source§

fn element_stride(self) -> isize

Implementors§