Struct rustc_passes::layout_test::LayoutTest
source · [−]struct LayoutTest<'tcx> {
tcx: TyCtxt<'tcx>,
}Fields
tcx: TyCtxt<'tcx>Implementations
sourceimpl<'tcx> LayoutTest<'tcx>
impl<'tcx> LayoutTest<'tcx>
fn dump_layout_of(
&self,
item_def_id: LocalDefId,
item: &Item<'tcx>,
attr: &Attribute
)
Trait Implementations
sourceimpl<'tcx> ItemLikeVisitor<'tcx> for LayoutTest<'tcx>
impl<'tcx> ItemLikeVisitor<'tcx> for LayoutTest<'tcx>
fn visit_item(&mut self, item: &'tcx Item<'tcx>)
fn visit_trait_item(&mut self, _: &'tcx TraitItem<'tcx>)
fn visit_impl_item(&mut self, _: &'tcx ImplItem<'tcx>)
fn visit_foreign_item(&mut self, _: &'tcx ForeignItem<'tcx>)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for LayoutTest<'tcx>
impl<'tcx> !Send for LayoutTest<'tcx>
impl<'tcx> !Sync for LayoutTest<'tcx>
impl<'tcx> Unpin for LayoutTest<'tcx>
impl<'tcx> !UnwindSafe for LayoutTest<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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: 8 bytes