Struct rustc_typeck::expr_use_visitor::Projection [−][src]
pub struct Projection<'tcx> {
pub ty: &'tcx TyS<'tcx>,
pub kind: ProjectionKind,
}Fields
ty: &'tcx TyS<'tcx>Type after the projection is applied.
kind: ProjectionKindDefines the kind of access made by the projection.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Projection<'tcx>
impl<'tcx> !Send for Projection<'tcx>
impl<'tcx> !Sync for Projection<'tcx>
impl<'tcx> Unpin for Projection<'tcx>
impl<'tcx> !UnwindSafe for Projection<'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 be different between compiler versions and platforms. 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