Expand description
This is a copy of std::marker::variance
.
Structs§
- Phantom
Contravariant - Zero-sized type used to mark a type parameter as contravariant.
- Phantom
Contravariant Lifetime - Zero-sized type used to mark a lifetime as contravariant.
- Phantom
Covariant - Zero-sized type used to mark a type parameter as covariant.
- Phantom
Covariant Lifetime - Zero-sized type used to mark a lifetime as covariant.
- Phantom
Invariant - Zero-sized type used to mark a type parameter as invariant.
- Phantom
Invariant Lifetime - Zero-sized type used to mark a lifetime as invariant.
Traits§
- Variance
- A marker trait for phantom variance types.
Functions§
- variance
- Construct a variance marker; equivalent to
Default::default
.