pub trait Variance: Sealed + Default { }
phantom_variance_markers #135806)
A marker trait for phantom variance types.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
impl Variance for PhantomContravariantLifetime<'_>
impl Variance for PhantomCovariantLifetime<'_>
impl Variance for PhantomInvariantLifetime<'_>
impl<T> Variance for PhantomContravariant<T>where
T: ?Sized,impl<T> Variance for PhantomCovariant<T>where
T: ?Sized,impl<T> Variance for PhantomInvariant<T>where
T: ?Sized,
© 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/marker/trait.Variance.html