Trait AliasAnalysis

Source
pub trait AliasAnalysis: Analysis {
    // Required methods
    fn get_fn_alias(&self, def_id: DefId) -> Option<AAResult>;
    fn get_all_fn_alias(&self) -> AAResultMap;

    // Provided method
    fn get_local_fn_alias(&self) -> AAResultMap { ... }
}
Expand description

This trait provides features related to alias analysis.

Required Methods§

Source

fn get_fn_alias(&self, def_id: DefId) -> Option<AAResult>

Return the aliases among the function arguments and return value of a specific function.

Source

fn get_all_fn_alias(&self) -> AAResultMap

Return the aliases among the function arguments and return value for all functions.

Provided Methods§

Source

fn get_local_fn_alias(&self) -> AAResultMap

Return the aliases among the function arguments and return value for functions of the local crate.

Implementors§