Trait TrustedStep
unsafe trait TrustedStep: Step + Copy
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 i64impl TrustedStep for i128impl TrustedStep for isizeimpl TrustedStep for u8impl TrustedStep for u16impl TrustedStep for Charimpl TrustedStep for u32impl TrustedStep for u64impl TrustedStep for u128impl TrustedStep for usizeimpl TrustedStep for Ipv4Addrimpl TrustedStep for charimpl TrustedStep for Ipv6Addrimpl TrustedStep for i8impl TrustedStep for i16impl TrustedStep for i32