pub enum ShellFlag {
DashC,
DashCapitalC,
DashE,
LongCommand(LongCommandName),
SlashC(CmdSwitch),
PowerShell(PowerShellParameter),
}Expand description
The flag that gives a shell a command string, as the shell’s family spells it.
Variants§
DashC
-c, alone or inside a cluster such as -lc.
DashCapitalC
fish’s -C, which runs an init command string.
DashE
nushell’s -e, which executes a command string.
LongCommand(LongCommandName)
A long flag such as --command.
SlashC(CmdSwitch)
cmd’s /c, /k or /r.
PowerShell(PowerShellParameter)
A PowerShell parameter or an abbreviation or alias of it.
Trait Implementations§
impl Copy for ShellFlag
impl Eq for ShellFlag
impl StructuralPartialEq for ShellFlag
Auto Trait Implementations§
impl Freeze for ShellFlag
impl RefUnwindSafe for ShellFlag
impl Send for ShellFlag
impl Sync for ShellFlag
impl Unpin for ShellFlag
impl UnsafeUnpin for ShellFlag
impl UnwindSafe for ShellFlag
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§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.