#[non_exhaustive]pub enum Shell {
Bash,
Zsh,
Fish,
Elvish,
PowerShell,
}Expand description
The shells a script can be written for.
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
GNU bash, with its complete -F.
Zsh
zsh’s completion system (compinit).
Fish
fish.
Elvish
Elvish.
PowerShell
PowerShell.
Implementations§
Trait Implementations§
impl Copy for Shell
impl Eq for Shell
Source§impl FromArg for Shell
So a program’s own --completions <SHELL> flag can be a Shell.
impl FromArg for Shell
So a program’s own --completions <SHELL> flag can be a Shell.
Source§const CHOICES: &'static [&'static str]
const CHOICES: &'static [&'static str]
The values accepted, when there is a fixed set: help lists them as
[possible values: …]. Empty by default; #[derive(ValueEnum)] fills
it with each visible variant’s name.Source§const HINT: Hint = crate::complete::Hint::Nothing
const HINT: Hint = crate::complete::Hint::Nothing
What the value is, for the shell that completes it, when a field
states no
hint. Nothing a shell knows by default: a number, an
address, a type of the program. A PathBuf, a String and an
OsString are a file: a word is one more often than not, and a shell
that offers files stops no other word from being typed.impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnsafeUnpin for Shell
impl UnwindSafe for Shell
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