Struct rustc_mir_build::build::matches::Ascription
source · struct Ascription<'tcx> {
source: Place<'tcx>,
annotation: CanonicalUserTypeAnnotation<'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§
§source: Place<'tcx>
§annotation: CanonicalUserTypeAnnotation<'tcx>
§variance: Variance
Trait Implementations§
source§impl<'tcx> Clone for Ascription<'tcx>
impl<'tcx> Clone for Ascription<'tcx>
source§fn clone(&self) -> Ascription<'tcx>
fn clone(&self) -> Ascription<'tcx>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 48 bytes