Struct rustc_hir_typeck::fn_ctxt::LoweredTy
source · pub struct LoweredTy<'tcx> {
pub raw: Ty<'tcx>,
pub normalized: Ty<'tcx>,
}Expand description
The ty representation of a user-provided type. Depending on the use-site
we want to either use the unnormalized or the normalized form of this type.
This is a bridge between the interface of AstConv, which outputs a raw Ty,
and the API in this module, which expect Ty to be fully normalized.
Fields§
§raw: Ty<'tcx>The unnormalized type provided by the user.
normalized: Ty<'tcx>The normalized form of raw, stored here for efficiency.
Implementations§
Trait Implementations§
impl<'tcx> Copy for LoweredTy<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for LoweredTy<'tcx>
impl<'tcx> Send for LoweredTy<'tcx>
impl<'tcx> Sync for LoweredTy<'tcx>
impl<'tcx> Unpin for LoweredTy<'tcx>
impl<'tcx> !UnwindSafe for LoweredTy<'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: 16 bytes