Enum rustc_borrowck::ty::ExistentialPredicate [−][src]
pub enum ExistentialPredicate<'tcx> {
Trait(ExistentialTraitRef<'tcx>),
Projection(ExistentialProjection<'tcx>),
AutoTrait(DefId),
}Variants
Trait(ExistentialTraitRef<'tcx>)
Tuple Fields
0: ExistentialTraitRef<'tcx>E.g., Iterator.
Projection(ExistentialProjection<'tcx>)
Tuple Fields
0: ExistentialProjection<'tcx>E.g., Iterator::Item = T.
AutoTrait(DefId)
Tuple Fields
0: DefIdE.g., Send.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ExistentialPredicate<'tcx>
impl<'tcx> !Send for ExistentialPredicate<'tcx>
impl<'tcx> !Sync for ExistentialPredicate<'tcx>
impl<'tcx> Unpin for ExistentialPredicate<'tcx>
impl<'tcx> !UnwindSafe for ExistentialPredicate<'tcx>
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: 32 bytes
Size for each variant:
Trait: 20 bytesProjection: 28 bytesAutoTrait: 8 bytes