pub struct ScoringEngine { /* private fields */ }Expand description
Engine for calculating CrabScores
Implementations§
Source§impl ScoringEngine
impl ScoringEngine
Sourcepub fn new(profile: IndustryProfile) -> Self
pub fn new(profile: IndustryProfile) -> Self
Create a new scoring engine with the given industry profile
Sourcepub fn calculate_score(
&self,
performance: &PerformanceMetrics,
energy: &EnergyMetrics,
cost: &CostMetrics,
safety: &SafetyMetrics,
) -> CrabScore
pub fn calculate_score( &self, performance: &PerformanceMetrics, energy: &EnergyMetrics, cost: &CostMetrics, safety: &SafetyMetrics, ) -> CrabScore
Calculate a CrabScore based on the provided metrics
Auto Trait Implementations§
impl Freeze for ScoringEngine
impl RefUnwindSafe for ScoringEngine
impl Send for ScoringEngine
impl Sync for ScoringEngine
impl Unpin for ScoringEngine
impl UnsafeUnpin for ScoringEngine
impl UnwindSafe for ScoringEngine
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