rustc_codegen_ssa::mir::debuginfo

Trait DebugInfoOffsetLocation

Source
trait DebugInfoOffsetLocation<'tcx, Bx> {
    // Required methods
    fn deref(&self, bx: &mut Bx) -> Self;
    fn layout(&self) -> TyAndLayout<'tcx>;
    fn project_field(&self, bx: &mut Bx, field: FieldIdx) -> Self;
    fn project_constant_index(&self, bx: &mut Bx, offset: u64) -> Self;
    fn downcast(&self, bx: &mut Bx, variant: VariantIdx) -> Self;
}

Required Methods§

Source

fn deref(&self, bx: &mut Bx) -> Self

Source

fn layout(&self) -> TyAndLayout<'tcx>

Source

fn project_field(&self, bx: &mut Bx, field: FieldIdx) -> Self

Source

fn project_constant_index(&self, bx: &mut Bx, offset: u64) -> Self

Source

fn downcast(&self, bx: &mut Bx, variant: VariantIdx) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> DebugInfoOffsetLocation<'tcx, Bx> for TyAndLayout<'tcx>

Source§

fn deref(&self, bx: &mut Bx) -> Self

Source§

fn layout(&self) -> TyAndLayout<'tcx>

Source§

fn project_field(&self, bx: &mut Bx, field: FieldIdx) -> Self

Source§

fn project_constant_index(&self, bx: &mut Bx, index: u64) -> Self

Source§

fn downcast(&self, bx: &mut Bx, variant: VariantIdx) -> Self

Implementors§

Source§

impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> DebugInfoOffsetLocation<'tcx, Bx> for PlaceRef<'tcx, Bx::Value>