pub struct ReferenceRange {
pub metric: String,
pub metric_version: u32,
pub low: f64,
pub high: f64,
pub source: String,
}Expand description
The published typical value of one Metric for codebases in the language of the Language plugin.
Fields§
§metric: StringThe Metric, by its key in the report: erosion, verbosity, duplication, or import_cycles.
metric_version: u32The positive integer version of the Metric that this Reference range was calibrated against.
low: f64The lowest typical ratio, from 0 to 1.
high: f64The highest typical ratio, from low to 1.
source: StringWhere the range was published and what it measured, shown next to the range.
Implementations§
Source§impl ReferenceRange
impl ReferenceRange
pub fn is_stale_for(&self, current_metric_version: u32) -> bool
Trait Implementations§
Source§impl Clone for ReferenceRange
impl Clone for ReferenceRange
Auto Trait Implementations§
impl Forget for ReferenceRange
impl Freeze for ReferenceRange
impl Move for ReferenceRange
impl RefUnwindSafe for ReferenceRange
impl Send for ReferenceRangewhere
RawVecInner: Send,
impl Sync for ReferenceRangewhere
RawVecInner: Sync,
impl Unpin for ReferenceRange
impl UnsafeUnpin for ReferenceRange
impl UnwindSafe for ReferenceRangewhere
RawVecInner: UnwindSafe,
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