pub struct ProgramResourceAnalyzer { /* private fields */ }Expand description
Program-wide resource analyzer for cross-word analysis
This analyzer performs two passes:
- Collect resource information about each word (what resources it returns)
- Analyze each word with knowledge of callee behavior
Implementations§
Source§impl ProgramResourceAnalyzer
impl ProgramResourceAnalyzer
pub fn new(file: &Path) -> Self
Sourcepub fn analyze_program(&mut self, program: &Program) -> Vec<LintDiagnostic>
pub fn analyze_program(&mut self, program: &Program) -> Vec<LintDiagnostic>
Analyze an entire program for resource leaks with cross-word tracking
Auto Trait Implementations§
impl Freeze for ProgramResourceAnalyzer
impl RefUnwindSafe for ProgramResourceAnalyzer
impl Send for ProgramResourceAnalyzer
impl Sync for ProgramResourceAnalyzer
impl Unpin for ProgramResourceAnalyzer
impl UnwindSafe for ProgramResourceAnalyzer
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