Skip to main content

WriteSemantics

Trait WriteSemantics 

Source
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§

Source

fn traces_base_pointer<'tcx>( &self, tcx: TyCtxt<'tcx>, caller: DefId, func: &Operand<'tcx>, ) -> bool

Source

fn direct_write_arg(&self, tcx: TyCtxt<'_>, func: &Operand<'_>) -> Option<usize>

Source

fn special_write_args<'tcx>( &self, tcx: TyCtxt<'tcx>, caller: DefId, func: &Operand<'tcx>, args: &[Spanned<Operand<'tcx>>], body: &Body<'tcx>, ) -> Option<Vec<usize>>

Source

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".

Implementors§