pub struct SafetyFlowAnalysis<'tcx> {
pub tcx: TyCtxt<'tcx>,
pub units: Vec<SafetyFlowUnit>,
pub draw: bool,
}Fields§
§tcx: TyCtxt<'tcx>§units: Vec<SafetyFlowUnit>§draw: boolImplementations§
Source§impl<'tcx> SafetyFlowAnalysis<'tcx>
impl<'tcx> SafetyFlowAnalysis<'tcx>
pub fn audit_std_unsafe(&mut self)
pub fn render_dot(&mut self)
pub fn get_chains(&mut self)
pub fn get_units_data(&mut self)
pub fn process_def_id( &mut self, def_id: DefId, visited: &mut HashSet<DefId>, unsafe_fn: &mut HashSet<DefId>, )
Source§impl<'tcx> SafetyFlowAnalysis<'tcx>
impl<'tcx> SafetyFlowAnalysis<'tcx>
pub fn new(tcx: TyCtxt<'tcx>) -> Self
pub fn with_draw(self, draw: bool) -> Self
pub fn start(&mut self, ins: TargetCrate)
pub fn insert_upg(&mut self, def_id: DefId)
Sourcepub fn display_summary(&self)
pub fn display_summary(&self)
Print a human-readable text summary of all safety flow units, grouped by module, similar to callgraph’s output format.
Sourcepub fn collect_dots(&self) -> Vec<(String, String)>
pub fn collect_dots(&self) -> Vec<(String, String)>
Aggregate units into per-module DOT graphs and return them.
Auto Trait Implementations§
impl<'tcx> Freeze for SafetyFlowAnalysis<'tcx>
impl<'tcx> !RefUnwindSafe for SafetyFlowAnalysis<'tcx>
impl<'tcx> !Send for SafetyFlowAnalysis<'tcx>
impl<'tcx> !Sync for SafetyFlowAnalysis<'tcx>
impl<'tcx> Unpin for SafetyFlowAnalysis<'tcx>
impl<'tcx> !UnwindSafe for SafetyFlowAnalysis<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more