Trait StepIndex

Source
pub trait StepIndex: Eq + Hash {
    // Required method
    fn next(&self) -> Self;
}
Expand description

A helper trait for planning the step index TODO: This will need to be improved to offer more flexibility

Required Methods§

Source

fn next(&self) -> Self

Returns the next item in the index

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 StepIndex for u32

Source§

fn next(&self) -> Self

Source§

impl StepIndex for usize

Source§

fn next(&self) -> Self

Implementors§