pub struct SpecRow {
pub group: &'static str,
pub value_type: ValueType,
pub label: &'static str,
pub name: &'static str,
pub short: &'static str,
pub description: &'static str,
pub formula: &'static str,
pub calc: &'static str,
pub direction: Direction,
pub abbreviate: bool,
pub omit_at: f64,
}Expand description
One row of a declarative attribute table: a flat, named-field description of
an AttributeSpec. Empty &str fields become None; direction defaults
to Direction::Neutral. Build a whole dictionary with attr_dict.
This replaces both the per-field spec.x = Some(...) boilerplate and the
positional metric-row tuples that the metric/coupling crates used to carry
separately, so every centrally-computed spec is declared the same way.
Fields§
§group: &'static str§value_type: ValueType§label: &'static str§name: &'static str§short: &'static str§description: &'static str§formula: &'static str§calc: &'static str§direction: Direction§abbreviate: bool§omit_at: f64See AttributeSpec::omit_at. Defaults to 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecRow
impl RefUnwindSafe for SpecRow
impl Send for SpecRow
impl Sync for SpecRow
impl Unpin for SpecRow
impl UnsafeUnpin for SpecRow
impl UnwindSafe for SpecRow
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