Enum rustc_resolve::ty::Variance [−][src]
pub enum Variance {
Covariant,
Invariant,
Contravariant,
Bivariant,
}Variants
Covariant
Invariant
Contravariant
Bivariant
Auto Trait Implementations
impl RefUnwindSafe for Variance
impl UnwindSafe for Variance
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Covariant: 0 bytesInvariant: 0 bytesContravariant: 0 bytesBivariant: 0 bytes