pub enum Preset {
Default,
Dependencies,
AllIgnored,
All,
}Expand description
A named point on the two axes, which is what one key cycles through.
§The cycle is a path through the lattice, one axis at a time
default → dependencies → all-ignored → all, and each step moves exactly one axis while
retaining the other:
| tier | kind | |
|---|---|---|
default | named | every kind |
dependencies | named | dependencies ← kind narrows |
all-ignored | named + gitignored ← tier widens | dependencies |
all | named + gitignored | every kind ← kind widens |
That is what makes them four distinct views rather than three wearing four names, and it is
what the asked-for order is for: read as a path, all-ignored is “the view I am on, plus
the gitignored tier”, which is precisely the sentence the tier axis makes available.
An earlier pass mapped all-ignored and all to one point and told them apart by having
all clear the / pattern. Adversarial review rejected that and was right twice over: it
left a step of the cycle doing nothing to the axes, and it reached for the pattern — which is
orthogonal to both axes — to manufacture a difference. The pattern is never touched by a
preset now.
Variants§
Default
What a rule could put a name to: tier one, every kind. Where a run starts.
It hides the gitignored tier, so super::render says how many claims that is on the
header — a view that narrows without saying what it dropped is the “silently keeps”
failure the age floor was already resolved against.
Dependencies
Installed third-party code, and only that: npkill’s vendor. The kind axis narrowed,
the tier axis exactly as default had it.
AllIgnored
The step before it, and also the gitignore fallback: the tier axis widened, the kind narrowing retained.
All
Everything the scan found: both tiers, every kind.
Implementations§
Source§impl Preset
impl Preset
Sourcepub const ALL: [Self; 4]
pub const ALL: [Self; 4]
Every preset, in the order f walks them — the order the request names them in.
Trait Implementations§
impl Copy for Preset
impl Eq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Preset
impl UnwindSafe for Preset
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more