Struct rustc_mir_build::build::matches::Ascription [−][src]
struct Ascription<'tcx> {
span: Span,
source: Place<'tcx>,
user_ty: PatTyProj<'tcx>,
variance: Variance,
}
Expand description
Indicates that the type of source
must be a subtype of the
user-given type user_ty
; this is basically a no-op but can
influence region inference.
Fields
span: Span
source: Place<'tcx>
user_ty: PatTyProj<'tcx>
variance: Variance
Trait Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Ascription<'tcx>
impl<'tcx> !Send for Ascription<'tcx>
impl<'tcx> !Sync for Ascription<'tcx>
impl<'tcx> Unpin for Ascription<'tcx>
impl<'tcx> !UnwindSafe for Ascription<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 88 bytes