#[non_exhaustive]pub enum DeltaSortKey {
ScoreDelta,
CurrentCrap,
BaselineCrap,
Path,
}Expand description
Sort key for the displayed delta view.
ScoreDelta (default) ranks rows by signed impact, descending —
regressions first. Modified uses current - baseline; Added
uses +current.crap (a new function exists where there was none —
pure load); Removed uses -baseline.crap (a function went
away — pure relief). Sort descending: regressions and risky
additions land at the top of the scorecard, improvements and
benign removals at the bottom.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ScoreDelta
Magnitude of change descending (regressions first).
CurrentCrap
Current CRAP score descending. Removed rows (no current
score) sort last.
BaselineCrap
Baseline CRAP score descending. Added rows sort last.
Path
Alphabetical by file_path, then qualified_name.
Implementations§
Source§impl DeltaSortKey
impl DeltaSortKey
Sourcepub fn as_wire_str(&self) -> &'static str
pub fn as_wire_str(&self) -> &'static str
Canonical wire string — see ContributorKind::as_wire_str.
Trait Implementations§
Source§impl Clone for DeltaSortKey
impl Clone for DeltaSortKey
Source§fn clone(&self) -> DeltaSortKey
fn clone(&self) -> DeltaSortKey
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 moreSource§impl Debug for DeltaSortKey
impl Debug for DeltaSortKey
Source§impl Default for DeltaSortKey
impl Default for DeltaSortKey
Source§fn default() -> DeltaSortKey
fn default() -> DeltaSortKey
Returns the “default value” for a type. Read more
Source§impl From<DeltaSortKeyArg> for DeltaSortKey
impl From<DeltaSortKeyArg> for DeltaSortKey
Source§fn from(arg: DeltaSortKeyArg) -> Self
fn from(arg: DeltaSortKeyArg) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeltaSortKey
impl PartialEq for DeltaSortKey
Source§fn eq(&self, other: &DeltaSortKey) -> bool
fn eq(&self, other: &DeltaSortKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeltaSortKey
impl Serialize for DeltaSortKey
impl Copy for DeltaSortKey
impl Eq for DeltaSortKey
impl StructuralPartialEq for DeltaSortKey
Auto Trait Implementations§
impl Freeze for DeltaSortKey
impl RefUnwindSafe for DeltaSortKey
impl Send for DeltaSortKey
impl Sync for DeltaSortKey
impl Unpin for DeltaSortKey
impl UnsafeUnpin for DeltaSortKey
impl UnwindSafe for DeltaSortKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.