Struct rustc_typeck::ty::CanonicalUserTypeAnnotation [−][src]
pub struct CanonicalUserTypeAnnotation<'tcx> {
pub user_ty: Canonical<'tcx, UserType<'tcx>>,
pub span: Span,
pub inferred_ty: &'tcx TyS<'tcx>,
}Fields
user_ty: Canonical<'tcx, UserType<'tcx>>span: Spaninferred_ty: &'tcx TyS<'tcx>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CanonicalUserTypeAnnotation<'tcx>
impl<'tcx> !Send for CanonicalUserTypeAnnotation<'tcx>
impl<'tcx> !Sync for CanonicalUserTypeAnnotation<'tcx>
impl<'tcx> Unpin for CanonicalUserTypeAnnotation<'tcx>
impl<'tcx> !UnwindSafe for CanonicalUserTypeAnnotation<'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: 72 bytes