pub struct StabilityAnalyzer { /* private fields */ }Expand description
Analyses code unit stability based on change history patterns.
Implementations§
Source§impl StabilityAnalyzer
impl StabilityAnalyzer
Sourcepub fn with_options(options: StabilityOptions) -> Self
pub fn with_options(options: StabilityOptions) -> Self
Create a new stability analyser with custom options.
Sourcepub fn calculate_stability(
&self,
path: &Path,
history: &ChangeHistory,
) -> StabilityResult
pub fn calculate_stability( &self, path: &Path, history: &ChangeHistory, ) -> StabilityResult
Calculate stability for a file path given its change history.
Returns a StabilityResult with the overall score and contributing factors.
If the path has no history, returns a perfect stability score of 1.0.
Trait Implementations§
Source§impl Clone for StabilityAnalyzer
impl Clone for StabilityAnalyzer
Source§fn clone(&self) -> StabilityAnalyzer
fn clone(&self) -> StabilityAnalyzer
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 StabilityAnalyzer
impl Debug for StabilityAnalyzer
Auto Trait Implementations§
impl Freeze for StabilityAnalyzer
impl RefUnwindSafe for StabilityAnalyzer
impl Send for StabilityAnalyzer
impl Sync for StabilityAnalyzer
impl Unpin for StabilityAnalyzer
impl UnsafeUnpin for StabilityAnalyzer
impl UnwindSafe for StabilityAnalyzer
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