pub trait DebugInfoBuilderMethods<'tcx>: BackendTypes {
// Required methods
fn dbg_var_addr(
&mut self,
dbg_var: Self::DIVariable,
dbg_loc: Self::DILocation,
variable_alloca: Self::Value,
direct_offset: Size,
indirect_offsets: &[Size],
fragment: &Option<Range<Size>>,
);
fn dbg_var_value(
&mut self,
dbg_var: Self::DIVariable,
dbg_loc: Self::DILocation,
value: Self::Value,
direct_offset: Size,
indirect_offsets: &[Size],
fragment: &Option<Range<Size>>,
);
fn set_dbg_loc(&mut self, dbg_loc: Self::DILocation);
fn clear_dbg_loc(&mut self);
fn insert_reference_to_gdb_debug_scripts_section_global(&mut self);
fn set_var_name(&mut self, value: Self::Value, name: &str);
// Provided method
fn with_move_annotation<R>(
&mut self,
_instance: Instance<'tcx>,
f: impl FnOnce(&mut Self) -> R,
) -> R { ... }
}Required Methods§
fn dbg_var_addr( &mut self, dbg_var: Self::DIVariable, dbg_loc: Self::DILocation, variable_alloca: Self::Value, direct_offset: Size, indirect_offsets: &[Size], fragment: &Option<Range<Size>>, )
fn dbg_var_value( &mut self, dbg_var: Self::DIVariable, dbg_loc: Self::DILocation, value: Self::Value, direct_offset: Size, indirect_offsets: &[Size], fragment: &Option<Range<Size>>, )
fn set_dbg_loc(&mut self, dbg_loc: Self::DILocation)
fn clear_dbg_loc(&mut self)
fn insert_reference_to_gdb_debug_scripts_section_global(&mut self)
fn set_var_name(&mut self, value: Self::Value, name: &str)
Provided Methods§
Sourcefn with_move_annotation<R>(
&mut self,
_instance: Instance<'tcx>,
f: impl FnOnce(&mut Self) -> R,
) -> R
fn with_move_annotation<R>( &mut self, _instance: Instance<'tcx>, f: impl FnOnce(&mut Self) -> R, ) -> R
Hook to allow move/copy operations to be annotated for profiling.
The instance parameter should be the monomorphized instance of the
compiler_move or compiler_copy function with the actual type and size.
Default implementation does no annotation (just executes the closure).
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.