pub trait Step: Sized {
// Required methods
fn forward(start: Self, count: usize) -> Option<Self>;
fn backward(start: Self, count: usize) -> Option<Self>;
}Expand description
A type which successor and predecessor operations can be performed on.
Similar to std::iter::Step, but not nightly-only.
Required Methods§
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.