Trait StrideTrait

Source
pub trait StrideTrait: Indexable {
    // Required method
    fn stride(&self) -> <Self as Indexable>::Index;
}
Expand description

Trait for objects that have a stride.

This trait extends Indexable to include stride information, which is useful for operations that involve traversing or iterating over the object.

Required Methods§

Source

fn stride(&self) -> <Self as Indexable>::Index

Returns the stride of the object.

§Returns
  • <Self as Indexable>::Index: The stride of the object.

Implementors§