Struct rustc_passes::layout_test::UnwrapLayoutCx [−][src]
Fields
tcx: TyCtxt<'tcx>
param_env: ParamEnv<'tcx>
Trait Implementations
type LayoutOfResult = TyAndLayout<'tcx>
type LayoutOfResult = TyAndLayout<'tcx>
The TyAndLayout
-wrapping type (or TyAndLayout
itself), which will be
returned from layout_of
(see also handle_layout_err
). Read more
Helper used for layout_of
, to adapt tcx.layout_of(...)
into a
Self::LayoutOfResult
(which does not need to be a Result<...>
). Read more
Span
to use for tcx.at(span)
, from layout_of
.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for UnwrapLayoutCx<'tcx>
impl<'tcx> !Send for UnwrapLayoutCx<'tcx>
impl<'tcx> !Sync for UnwrapLayoutCx<'tcx>
impl<'tcx> Unpin for UnwrapLayoutCx<'tcx>
impl<'tcx> !UnwindSafe for UnwrapLayoutCx<'tcx>
Blanket Implementations
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