pub struct CodeArchaeologist<'g> { /* private fields */ }Expand description
Investigates the history and evolution of code.
Implementations§
Source§impl<'g> CodeArchaeologist<'g>
impl<'g> CodeArchaeologist<'g>
pub fn new(graph: &'g CodeGraph, history: ChangeHistory) -> Self
Sourcepub fn investigate(&self, unit_id: u64) -> Option<ArchaeologyResult>
pub fn investigate(&self, unit_id: u64) -> Option<ArchaeologyResult>
Investigate the full history of a code unit.
Sourcepub fn explain_why(&self, evolution: &CodeEvolution) -> String
pub fn explain_why(&self, evolution: &CodeEvolution) -> String
Answer “why does this code look the way it does?”
Sourcepub fn when_changed(&self, unit_id: u64) -> Vec<TimelineEvent>
pub fn when_changed(&self, unit_id: u64) -> Vec<TimelineEvent>
Answer “when did important changes happen?”
Auto Trait Implementations§
impl<'g> Freeze for CodeArchaeologist<'g>
impl<'g> RefUnwindSafe for CodeArchaeologist<'g>
impl<'g> Send for CodeArchaeologist<'g>
impl<'g> Sync for CodeArchaeologist<'g>
impl<'g> Unpin for CodeArchaeologist<'g>
impl<'g> UnsafeUnpin for CodeArchaeologist<'g>
impl<'g> UnwindSafe for CodeArchaeologist<'g>
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