pub enum Variant {
Rule,
Example,
Contrast,
Rationale,
}Expand description
The “how it’s said” — variations of one idea, used to reinforce.
There is deliberately no Style/Guidance variant: idiomatic best-practice
(“prefer --json”) is foundational content (the Concept::Foundations
concept), not a rendering. See docs/composable-help.md (resolved Q2).
Variants§
Rule
Terse imperative (“use --json for structured output”).
Example
Worked snippet (ls --json | jq '.[].name').
Contrast
How bash differs (“bash makes you parse ls text”).
Rationale
Why kaish chose this (“every builtin emits structured data”).
Trait Implementations§
impl Copy for Variant
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.