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
type Ty
[src]
type Ty
[src]type TyAndLayout
[src]
type TyAndLayout
[src]Required methods
fn layout_of(&self, ty: Self::Ty) -> Self::TyAndLayout
[src]
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]
fn spanned_layout_of(&self, ty: Self::Ty, _span: Span) -> Self::TyAndLayout
[src]