Struct rustc_hir_typeck::fn_ctxt::RawTy
source · pub struct RawTy<'tcx> {
pub raw: Ty<'tcx>,
pub normalized: Ty<'tcx>,
}
Expand description
Represents a user-provided type in the raw form (never normalized).
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>
§normalized: Ty<'tcx>
The normalized form of raw
, stored here for efficiency.
Trait Implementations§
impl<'tcx> Copy for RawTy<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for RawTy<'tcx>
impl<'tcx> Send for RawTy<'tcx>
impl<'tcx> Sync for RawTy<'tcx>
impl<'tcx> Unpin for RawTy<'tcx>
impl<'tcx> !UnwindSafe for RawTy<'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