pub struct ImpactAnalyzer { /* private fields */ }Expand description
Analyzes the impact of refactoring operations
Implementations§
Source§impl ImpactAnalyzer
impl ImpactAnalyzer
Sourcepub fn with_graph(graph: DependencyGraph) -> Self
pub fn with_graph(graph: DependencyGraph) -> Self
Create an analyzer with a pre-built dependency graph
Sourcepub fn add_symbol(&mut self, symbol: Symbol)
pub fn add_symbol(&mut self, symbol: Symbol)
Add a symbol to the dependency graph
Sourcepub fn add_dependency(&mut self, dependency: Dependency)
pub fn add_dependency(&mut self, dependency: Dependency)
Add a dependency to the graph
Sourcepub fn analyze(&self, refactoring: &Refactoring) -> Result<ImpactAnalysis>
pub fn analyze(&self, refactoring: &Refactoring) -> Result<ImpactAnalysis>
Analyze the impact of a refactoring
Sourcepub fn generate_report(&self, refactoring: &Refactoring) -> Result<ImpactReport>
pub fn generate_report(&self, refactoring: &Refactoring) -> Result<ImpactReport>
Generate a detailed impact report
Sourcepub fn graph(&self) -> &DependencyGraph
pub fn graph(&self) -> &DependencyGraph
Get the dependency graph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImpactAnalyzer
impl RefUnwindSafe for ImpactAnalyzer
impl Send for ImpactAnalyzer
impl Sync for ImpactAnalyzer
impl Unpin for ImpactAnalyzer
impl UnwindSafe for ImpactAnalyzer
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