pub trait DataflowAnalysis: Analysis {
// Required methods
fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataflowGraph>;
fn get_all_dataflow(&self) -> DataflowGraphMap;
fn has_flow_between(
&self,
def_id: DefId,
local1: Local,
local2: Local,
) -> bool;
fn collect_equivalent_locals(
&self,
def_id: DefId,
local: Local,
) -> HashSet<Local>;
fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret;
fn get_all_arg2ret(&self) -> Arg2RetMap;
}Expand description
This trait provides features related to dataflow analysis.
Required Methods§
fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataflowGraph>
fn get_all_dataflow(&self) -> DataflowGraphMap
fn has_flow_between(&self, def_id: DefId, local1: Local, local2: Local) -> bool
fn collect_equivalent_locals( &self, def_id: DefId, local: Local, ) -> HashSet<Local>
fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret
fn get_all_arg2ret(&self) -> Arg2RetMap
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".