[][src]Trait rustc_ap_rustc_target::abi::TyAndLayoutMethods

pub trait TyAndLayoutMethods<'a, C: LayoutOf<Ty = Self>>: Sized {
    fn for_variant(
        this: TyAndLayout<'a, Self>,
        cx: &C,
        variant_index: VariantIdx
    ) -> TyAndLayout<'a, Self>;
fn field(this: TyAndLayout<'a, Self>, cx: &C, i: usize) -> C::TyAndLayout;
fn pointee_info_at(
        this: TyAndLayout<'a, Self>,
        cx: &C,
        offset: Size
    ) -> Option<PointeeInfo>; }

Required methods

fn for_variant(
    this: TyAndLayout<'a, Self>,
    cx: &C,
    variant_index: VariantIdx
) -> TyAndLayout<'a, Self>

fn field(this: TyAndLayout<'a, Self>, cx: &C, i: usize) -> C::TyAndLayout

fn pointee_info_at(
    this: TyAndLayout<'a, Self>,
    cx: &C,
    offset: Size
) -> Option<PointeeInfo>

Loading content...

Implementors

Loading content...