[][src]Trait rustc::ty::layout::TyLayoutMethods

pub trait TyLayoutMethods<'a, C> where
    C: LayoutOf<Ty = Self>, 
{ fn for_variant(
        this: TyLayout<'a, Self>,
        cx: C,
        variant_index: usize
    ) -> TyLayout<'a, Self>;
fn field(
        this: TyLayout<'a, Self>,
        cx: C,
        i: usize
    ) -> <C as LayoutOf>::TyLayout; }
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Required Methods

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Implementors

impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx> where
    C: LayoutOf<Ty = Ty<'tcx>> + HasTyCtxt<'tcx>,
    C::TyLayout: MaybeResult<TyLayout<'tcx>>, 
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?