Struct rustc_privacy::ty::ExistentialTraitRef [−][src]
pub struct ExistentialTraitRef<'tcx> {
pub def_id: DefId,
pub substs: &'tcx List<GenericArg<'tcx>>,
}Expand description
An existential reference to a trait, where Self is erased.
For example, the trait object Trait<'a, 'b, X, Y> is:
exists T. T: Trait<'a, 'b, X, Y>The substitutions don’t include the erased Self, only trait
type and lifetime parameters ([X, Y] and ['a, 'b] above).
Fields
def_id: DefIdsubsts: &'tcx List<GenericArg<'tcx>>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ExistentialTraitRef<'tcx>
impl<'tcx> !Send for ExistentialTraitRef<'tcx>
impl<'tcx> !Sync for ExistentialTraitRef<'tcx>
impl<'tcx> Unpin for ExistentialTraitRef<'tcx>
impl<'tcx> !UnwindSafe for ExistentialTraitRef<'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: 16 bytes