pub struct CodebaseComparer<'a, 'b> { /* private fields */ }Expand description
Compares two codebases at multiple levels.
Implementations§
Source§impl<'a, 'b> CodebaseComparer<'a, 'b>
impl<'a, 'b> CodebaseComparer<'a, 'b>
pub fn new( graph_a: &'a CodeGraph, label_a: &str, graph_b: &'b CodeGraph, label_b: &str, ) -> Self
Sourcepub fn compare(&self) -> CodebaseComparison
pub fn compare(&self) -> CodebaseComparison
Full structural + conceptual + pattern comparison.
Sourcepub fn compare_concept(&self, concept: &str) -> ConceptualDiff
pub fn compare_concept(&self, concept: &str) -> ConceptualDiff
Compare how a specific concept is implemented across both codebases.
Sourcepub fn migration_plan(&self) -> Vec<MigrationStep>
pub fn migration_plan(&self) -> Vec<MigrationStep>
Generate an ordered migration plan from A to B.
Auto Trait Implementations§
impl<'a, 'b> Freeze for CodebaseComparer<'a, 'b>
impl<'a, 'b> RefUnwindSafe for CodebaseComparer<'a, 'b>
impl<'a, 'b> Send for CodebaseComparer<'a, 'b>
impl<'a, 'b> Sync for CodebaseComparer<'a, 'b>
impl<'a, 'b> Unpin for CodebaseComparer<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CodebaseComparer<'a, 'b>
impl<'a, 'b> UnwindSafe for CodebaseComparer<'a, 'b>
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