Trait rustc_ap_rustc_target::abi::LayoutOf[][src]

pub trait LayoutOf {
    type Ty;
    type TyAndLayout;
    fn layout_of(&self, ty: Self::Ty) -> Self::TyAndLayout;

    fn spanned_layout_of(&self, ty: Self::Ty, _span: Span) -> Self::TyAndLayout { ... }
}
Expand description

Trait for context types that can compute layouts of things.

Associated Types

Required methods

fn layout_of(&self, ty: Self::Ty) -> Self::TyAndLayout[src]

Provided methods

fn spanned_layout_of(&self, ty: Self::Ty, _span: Span) -> Self::TyAndLayout[src]

Implementors