Trait TrustedStep

Source
pub unsafe trait TrustedStep: Step + Copy { }
🔬This is a nightly-only experimental API. (trusted_step #85731)
Expand description

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.

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.

Implementors§

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy