Type Alias rustc_middle::ty::ExistentialPredicate
source · pub type ExistentialPredicate<'tcx> = ExistentialPredicate<TyCtxt<'tcx>>;
Aliased Type§
enum ExistentialPredicate<'tcx> {
Trait(ExistentialTraitRef<TyCtxt<'tcx>>),
Projection(ExistentialProjection<TyCtxt<'tcx>>),
AutoTrait(DefId),
}
Variants§
Trait(ExistentialTraitRef<TyCtxt<'tcx>>)
E.g., Iterator
.
Projection(ExistentialProjection<TyCtxt<'tcx>>)
E.g., Iterator::Item = T
.
AutoTrait(DefId)
E.g., Send
.
Trait Implementations§
source§impl<'tcx> ExistentialPredicateStableCmpExt<'tcx> for ExistentialPredicate<'tcx>
impl<'tcx> ExistentialPredicateStableCmpExt<'tcx> for ExistentialPredicate<'tcx>
source§impl<'tcx, P: PrettyPrinter<'tcx>> Print<'tcx, P> for ExistentialPredicate<'tcx>
impl<'tcx, P: PrettyPrinter<'tcx>> Print<'tcx, P> for ExistentialPredicate<'tcx>
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: 24 bytes
Size for each variant:
Trait
: 24 bytesProjection
: 24 bytesAutoTrait
: 12 bytes