Trait std::iter::TrustedStep
pub unsafe trait TrustedStep: Step { }
A type that upholds all invariants of Step
.
The invariants of Step::steps_between()
are a superset of the invariants of TrustedLen
. As such, TrustedLen
is implemented for all range types with the same generic type argument.
Safety
The implementation of Step
for the given type must guarantee all invariants of all methods are upheld. See the Step
trait’s documentation for details. Consumers are free to rely on the invariants in unsafe code.
Implementors
impl TrustedStep for char
impl TrustedStep for i8
impl TrustedStep for i16
impl TrustedStep for i32
impl TrustedStep for i64
impl TrustedStep for i128
impl TrustedStep for isize
impl TrustedStep for u8
impl TrustedStep for u16
impl TrustedStep for u32
impl TrustedStep for u64
impl TrustedStep for u128
impl TrustedStep for usize
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/iter/trait.TrustedStep.html