pub struct ChangeAnalyzer { /* private fields */ }
Expand description
Analyzer for processing Git commits and generating detailed change information
Implementations§
Source§impl ChangeAnalyzer
impl ChangeAnalyzer
Sourcepub fn analyze_commits(
&self,
from: &str,
to: &str,
) -> Result<Vec<AnalyzedChange>>
pub fn analyze_commits( &self, from: &str, to: &str, ) -> Result<Vec<AnalyzedChange>>
Analyze commits between two Git references
Sourcepub fn analyze_changes(
&self,
from: &str,
to: &str,
) -> Result<(Vec<AnalyzedChange>, ChangeMetrics)>
pub fn analyze_changes( &self, from: &str, to: &str, ) -> Result<(Vec<AnalyzedChange>, ChangeMetrics)>
Analyze changes between two Git references and return the analyzed changes along with total metrics
Sourcepub fn calculate_total_metrics(
&self,
changes: &[AnalyzedChange],
) -> ChangeMetrics
pub fn calculate_total_metrics( &self, changes: &[AnalyzedChange], ) -> ChangeMetrics
Calculate total metrics for a set of analyzed changes
Auto Trait Implementations§
impl Freeze for ChangeAnalyzer
impl RefUnwindSafe for ChangeAnalyzer
impl Send for ChangeAnalyzer
impl Sync for ChangeAnalyzer
impl Unpin for ChangeAnalyzer
impl UnwindSafe for ChangeAnalyzer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more