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

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 { ... }
}

Trait for context types that can compute layouts of things.

Associated Types

type Ty

type TyAndLayout

Loading content...

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementors

Loading content...