pub struct EnhancedScoreComponents {
pub base_score: ScoreComponents,
pub complexity_score: f64,
pub maintainability_score: f64,
pub cognitive_score: f64,
pub quality_score: f64,
pub enhanced_final_score: f64,
pub complexity_metrics: Option<ComplexityMetrics>,
pub adjusted_weights: EnhancedWeights,
}Expand description
Enhanced score components that include complexity metrics
Fields§
§base_score: ScoreComponentsBase score components from standard heuristics
complexity_score: f64Complexity-based scores
maintainability_score: f64§cognitive_score: f64§quality_score: f64§enhanced_final_score: f64Combined final score
complexity_metrics: Option<ComplexityMetrics>Detailed complexity metrics
adjusted_weights: EnhancedWeightsComplexity-adjusted weights
Implementations§
Source§impl EnhancedScoreComponents
impl EnhancedScoreComponents
Sourcepub fn score_breakdown(&self) -> HashMap<String, f64>
pub fn score_breakdown(&self) -> HashMap<String, f64>
Get a breakdown of score contributions
Sourcepub fn dominant_factor(&self) -> (&'static str, f64)
pub fn dominant_factor(&self) -> (&'static str, f64)
Get the dominant scoring factor
Sourcepub fn explanation(&self) -> String
pub fn explanation(&self) -> String
Get a human-readable explanation of the score
Trait Implementations§
Source§impl Clone for EnhancedScoreComponents
impl Clone for EnhancedScoreComponents
Source§fn clone(&self) -> EnhancedScoreComponents
fn clone(&self) -> EnhancedScoreComponents
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 moreAuto Trait Implementations§
impl Freeze for EnhancedScoreComponents
impl RefUnwindSafe for EnhancedScoreComponents
impl Send for EnhancedScoreComponents
impl Sync for EnhancedScoreComponents
impl Unpin for EnhancedScoreComponents
impl UnwindSafe for EnhancedScoreComponents
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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