pub enum SortKeyArg {
Crap,
Coverage,
Complexity,
Path,
}Expand description
Sort key for the displayed view (issue #68).
CLI-side wrapper that keeps clap::ValueEnum out of the domain.
From<SortKeyArg> for SortKey is the boundary; build_view_spec
translates at the edge so domain::view::SortKey stays clap-free.
Variants§
Crap
CRAP score descending (default — investigator’s first cut)
Coverage
Coverage percent ascending (lowest coverage first)
Complexity
Complexity descending (most complex first)
Path
Alphabetical by file_path, then CRAP descending within file
Trait Implementations§
Source§impl Clone for SortKeyArg
impl Clone for SortKeyArg
Source§fn clone(&self) -> SortKeyArg
fn clone(&self) -> SortKeyArg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SortKeyArg
impl Debug for SortKeyArg
Source§impl From<SortKey> for SortKeyArg
Reverse mapping for saved view presets (issue #80) — preset stores
domain SortKey, but FilterArgs.sort_by is the clap-side wrapper.
impl From<SortKey> for SortKeyArg
Reverse mapping for saved view presets (issue #80) — preset stores
domain SortKey, but FilterArgs.sort_by is the clap-side wrapper.
SortKey is #[non_exhaustive] for cross-crate consumers, but
post-S4 (#136) the cli module lives in the same crate as the domain
SortKey definition, so the compiler treats the match as exhaustive
without a wildcard arm. New domain variants must still land with a
paired CLI variant in the same PR — clippy’s missing-pattern error
is now the loud failure point (the formerly-required wildcard arm
triggered unreachable_patterns post-relocation).