pub struct MetricScore {
pub name: &'static str,
pub label: &'static str,
pub score: u8,
pub suggestion: String,
}Expand description
A single metric in the comprehensibility report.
Fields§
§name: &'static strShort metric name (e.g. “semantic_naming”).
label: &'static strHuman-readable label for UI.
score: u8Score 0–20.
suggestion: StringOne-line improvement suggestion (empty if score == 20).
Trait Implementations§
Source§impl Clone for MetricScore
impl Clone for MetricScore
Source§fn clone(&self) -> MetricScore
fn clone(&self) -> MetricScore
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 MetricScore
impl RefUnwindSafe for MetricScore
impl Send for MetricScore
impl Sync for MetricScore
impl Unpin for MetricScore
impl UnsafeUnpin for MetricScore
impl UnwindSafe for MetricScore
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