pub trait Step: PartialOrd {
const MIN: Self;
const MAX: Self;
// Required methods
fn next(&self) -> Option<Self>
where Self: Sized;
fn prev(&self) -> Option<Self>
where Self: Sized;
}
Expand description
Step trait, used as a base for creating iterators
Required Associated Constants§
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.