#[non_exhaustive]pub struct MetricRow {
pub name: &'static str,
pub summary: &'static str,
}Expand description
A bca list-metrics row: the bare name printed in names mode and
the one-line summary printed in descriptions mode.
#[non_exhaustive] for the same forward-compat reason as
MetricInfo.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strBare name printed one-per-line by list-metrics, e.g.
"halstead" or "sloc". Downstream tooling (bca diff, which
buckets per-file metric deltas by these names) relies on them, so
they are an external contract.
summary: &'static strOne-line description printed in list-metrics descriptions mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricRow
impl RefUnwindSafe for MetricRow
impl Send for MetricRow
impl Sync for MetricRow
impl Unpin for MetricRow
impl UnsafeUnpin for MetricRow
impl UnwindSafe for MetricRow
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