trait RangeIteratorImpl {
type Item;
// Required methods
fn spec_next(&mut self) -> Option<Self::Item>;
fn spec_nth(&mut self, n: usize) -> Option<Self::Item>;
fn spec_advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>;
fn spec_next_back(&mut self) -> Option<Self::Item>;
fn spec_nth_back(&mut self, n: usize) -> Option<Self::Item>;
fn spec_advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>;
}Expand description
Specialization implementations for Range.
Required Associated Types§
Required Methods§
fn spec_next(&mut self) -> Option<Self::Item>
fn spec_nth(&mut self, n: usize) -> Option<Self::Item>
fn spec_advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
fn spec_next_back(&mut self) -> Option<Self::Item>
fn spec_nth_back(&mut self, n: usize) -> Option<Self::Item>
fn spec_advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".