pub struct Analyzer {
pub analysis: ProgramAnalysis,
}Fields§
§analysis: ProgramAnalysisImplementations§
Source§impl Analyzer
impl Analyzer
pub fn new(mode: AnalysisMode) -> Self
pub fn analyze_snippet(&mut self, code: &str, filename: &str) -> Result<()>
pub fn build_ownership_graph(&mut self)
pub fn query_why_cant_use( &self, var_id: VariableId, line: usize, ) -> Option<String>
pub fn query_where_moved(&self, var_id: VariableId) -> Vec<usize>
pub fn query_what_borrows(&self, var_id: VariableId, line: usize) -> Vec<String>
pub fn finalize(self) -> ProgramAnalysis
Auto Trait Implementations§
impl Freeze for Analyzer
impl RefUnwindSafe for Analyzer
impl Send for Analyzer
impl Sync for Analyzer
impl Unpin for Analyzer
impl UnsafeUnpin for Analyzer
impl UnwindSafe for Analyzer
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