PhantomCovariantLifetime in std::marker - Rust (original) (raw)

Struct PhantomCovariantLifetime

Source

pub struct PhantomCovariantLifetime<'a>(/* private fields */);

🔬This is a nightly-only experimental API. (phantom_variance_markers #135806)

Expand description

Zero-sized type used to mark a lifetime as covariant.

Covariant lifetimes must live at least as long as declared. See the reference for more information.

§Layout

For all 'a, the following are guaranteed:

Source§

Source

🔬This is a nightly-only experimental API. (phantom_variance_markers #135806)

Constructs a new instance of the variance marker.

§

§

§

§

§

§