pub struct ProgramAnalysis {
pub files: Vec<SourceFile>,
pub functions: Vec<FunctionInfo>,
pub variables: Vec<Variable>,
pub scopes: Vec<Scope>,
pub events: Vec<Event>,
pub ownership_graph: OwnershipGraph,
pub diagnostics: Vec<Diagnostic>,
pub metadata: AnalysisMetadata,
}Fields§
§files: Vec<SourceFile>§functions: Vec<FunctionInfo>§variables: Vec<Variable>§scopes: Vec<Scope>§events: Vec<Event>§ownership_graph: OwnershipGraph§diagnostics: Vec<Diagnostic>§metadata: AnalysisMetadataImplementations§
Source§impl ProgramAnalysis
impl ProgramAnalysis
pub fn new(mode: AnalysisMode) -> Self
pub fn get_variable(&self, id: VariableId) -> Option<&Variable>
pub fn get_events_for_variable(&self, id: VariableId) -> Vec<&Event>
pub fn get_events_at_line(&self, line: usize) -> Vec<&Event>
pub fn get_ownership_state_at_line(&self, line: usize) -> OwnershipState
Trait Implementations§
Source§impl Clone for ProgramAnalysis
impl Clone for ProgramAnalysis
Source§fn clone(&self) -> ProgramAnalysis
fn clone(&self) -> ProgramAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgramAnalysis
impl Debug for ProgramAnalysis
Source§impl<'de> Deserialize<'de> for ProgramAnalysis
impl<'de> Deserialize<'de> for ProgramAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgramAnalysis
impl RefUnwindSafe for ProgramAnalysis
impl Send for ProgramAnalysis
impl Sync for ProgramAnalysis
impl Unpin for ProgramAnalysis
impl UnsafeUnpin for ProgramAnalysis
impl UnwindSafe for ProgramAnalysis
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