Enum clap_complete::Shell
source · #[non_exhaustive]
pub enum Shell {
Bash,
Elvish,
Fish,
PowerShell,
Zsh,
}
Expand description
Shell with auto-generated completion script available.
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.
Bash
Bourne Again SHell (bash)
Elvish
Elvish shell
Fish
Friendly Interactive SHell (fish)
PowerShell
PowerShell
Zsh
Z SHell (zsh)
Implementations§
source§impl Shell
impl Shell
sourcepub fn possible_values() -> impl Iterator<Item = PossibleValue<'static>>
👎Deprecated since 3.2.0: Replaced with EnumValueParser
Builder API: Instead of arg.possible_values(Shell::possible_values())
, use arg.value_parser(value_parser!(Shell))
pub fn possible_values() -> impl Iterator<Item = PossibleValue<'static>>
EnumValueParser
Builder API: Instead of arg.possible_values(Shell::possible_values())
, use arg.value_parser(value_parser!(Shell))
Deprecated, replaced with EnumValueParser
Builder API: Instead of arg.possible_values(Shell::possible_values())
, use arg.value_parser(value_parser!(Shell))
Trait Implementations§
source§impl ValueEnum for Shell
impl ValueEnum for Shell
source§fn value_variants<'a>() -> &'a [Self] ⓘ
fn value_variants<'a>() -> &'a [Self] ⓘ
All possible argument values, in display order.
source§fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
The canonical argument value. Read more
impl Copy for Shell
impl Eq for Shell
impl StructuralEq for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnwindSafe for Shell
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.