pub struct UPGAnalysis<'tcx> {
pub tcx: TyCtxt<'tcx>,
pub upgs: Vec<UPGUnit>,
}Fields§
§tcx: TyCtxt<'tcx>§upgs: Vec<UPGUnit>Implementations§
Source§impl<'tcx> UPGAnalysis<'tcx>
impl<'tcx> UPGAnalysis<'tcx>
pub fn audit_std_unsafe(&mut self)
pub fn render_dot(&mut self)
pub fn get_chains(&mut self)
pub fn get_all_std_unsafe_def_id_by_treat_std_as_local_crate( &mut self, tcx: TyCtxt<'tcx>, ) -> HashSet<DefId>
pub fn check_params(&self, def_id: DefId)
pub fn analyze_upg(&self)
pub fn analyze_struct(&self)
pub fn get_struct( &self, def_id: DefId, cache: &mut HashSet<DefId>, s: &mut usize, u: &mut usize, e: &mut usize, uc: &mut usize, vi: &mut usize, )
pub fn get_units_data(&mut self, tcx: TyCtxt<'tcx>)
pub fn process_def_id( &mut self, def_id: DefId, visited: &mut HashSet<DefId>, unsafe_fn: &mut HashSet<DefId>, )
Source§impl<'tcx> UPGAnalysis<'tcx>
impl<'tcx> UPGAnalysis<'tcx>
pub fn new(tcx: TyCtxt<'tcx>) -> Self
pub fn start(&mut self, ins: TargetCrate)
pub fn insert_upg(&mut self, def_id: DefId)
Sourcepub fn generate_graph_dots(&self)
pub fn generate_graph_dots(&self)
Main function to aggregate data and render DOT graphs per module.
Auto Trait Implementations§
impl<'tcx> Freeze for UPGAnalysis<'tcx>
impl<'tcx> !RefUnwindSafe for UPGAnalysis<'tcx>
impl<'tcx> !Send for UPGAnalysis<'tcx>
impl<'tcx> !Sync for UPGAnalysis<'tcx>
impl<'tcx> Unpin for UPGAnalysis<'tcx>
impl<'tcx> !UnwindSafe for UPGAnalysis<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more