#[non_exhaustive]pub struct MetricFamily {
pub name: &'static str,
pub rows: &'static [MetricRow],
}Expand description
A top-level metric family as surfaced by bca list-metrics.
Most families render as a single MetricRow whose name equals
name. loc is the exception: it renders one row per
sub-measurement (sloc, ploc, …) because those bare names are an
external grep contract.
#[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 strFamily key, e.g. "halstead", "loc". Matches
MetricInfo::family.
rows: &'static [MetricRow]list-metrics rows for this family, in display order.
Trait Implementations§
Source§impl Clone for MetricFamily
impl Clone for MetricFamily
Source§fn clone(&self) -> MetricFamily
fn clone(&self) -> MetricFamily
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 moreimpl Copy for MetricFamily
Auto Trait Implementations§
impl Freeze for MetricFamily
impl RefUnwindSafe for MetricFamily
impl Send for MetricFamily
impl Sync for MetricFamily
impl Unpin for MetricFamily
impl UnsafeUnpin for MetricFamily
impl UnwindSafe for MetricFamily
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