pub struct Breakdown32 {
pub name: &'static str,
pub raw: f32,
pub score: f32,
pub weight: f32,
pub contribution: f32,
}Expand description
A single metric’s contribution to the total score.
Returned by the iterator from ScoreSet32::breakdown.
Fields§
§name: &'static strMetric name.
raw: f32Raw measured value, before Map0132 normalization.
score: f32Normalized score in [0, 1].
weight: f32Normalized weight (sums to 1 across all metrics).
contribution: f32score * weight.
Trait Implementations§
Source§impl Clone for Breakdown32
impl Clone for Breakdown32
Source§fn clone(&self) -> Breakdown32
fn clone(&self) -> Breakdown32
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Breakdown32
impl RefUnwindSafe for Breakdown32
impl Send for Breakdown32
impl Sync for Breakdown32
impl Unpin for Breakdown32
impl UnsafeUnpin for Breakdown32
impl UnwindSafe for Breakdown32
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