pub(crate) trait WriteSemantics {
// Required methods
fn traces_base_pointer<'tcx>(
&self,
tcx: TyCtxt<'tcx>,
caller: DefId,
func: &Operand<'tcx>,
) -> bool;
fn direct_write_arg(
&self,
tcx: TyCtxt<'_>,
func: &Operand<'_>,
) -> Option<usize>;
fn special_write_args<'tcx>(
&self,
tcx: TyCtxt<'tcx>,
caller: DefId,
func: &Operand<'tcx>,
args: &[Spanned<Operand<'tcx>>],
body: &Body<'tcx>,
) -> Option<Vec<usize>>;
fn skip_mir_write(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool;
}Expand description
API-specific facts needed by the MIR write tracer.
Required Methods§
fn traces_base_pointer<'tcx>( &self, tcx: TyCtxt<'tcx>, caller: DefId, func: &Operand<'tcx>, ) -> bool
fn direct_write_arg(&self, tcx: TyCtxt<'_>, func: &Operand<'_>) -> Option<usize>
fn special_write_args<'tcx>( &self, tcx: TyCtxt<'tcx>, caller: DefId, func: &Operand<'tcx>, args: &[Spanned<Operand<'tcx>>], body: &Body<'tcx>, ) -> Option<Vec<usize>>
fn skip_mir_write(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".