Trait rustc_target::abi::TyAbiInterface[][src]

pub trait TyAbiInterface<'a, C>: Sized {
    fn ty_and_layout_for_variant(
        this: TyAndLayout<'a, Self>,
        cx: &C,
        variant_index: VariantIdx
    ) -> TyAndLayout<'a, Self>;
fn ty_and_layout_field(
        this: TyAndLayout<'a, Self>,
        cx: &C,
        i: usize
    ) -> TyAndLayout<'a, Self>;
fn ty_and_layout_pointee_info_at(
        this: TyAndLayout<'a, Self>,
        cx: &C,
        offset: Size
    ) -> Option<PointeeInfo>; }
Expand description

Trait that needs to be implemented by the higher-level type representation (e.g. rustc_middle::ty::Ty), to provide rustc_target::abi functionality.

Required methods

Implementors