[][src]Trait 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 { ... }
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Trait for context types that can compute layouts of things.

Associated Types

type Ty

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

type TyAndLayout

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Required methods

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

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Provided methods

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

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Implementors

Loading content...