pub enum ShellWrapper {
Bash,
Zsh,
Fish,
Elvish,
PowerShell,
}
Expand description
A wrapper struct for clap_complete::Shell
.
We need this wrapper so we can automatically serialize strings using EnumString
and use the
enums as a clap argument.
Variants§
Trait Implementations§
Source§impl Clone for ShellWrapper
impl Clone for ShellWrapper
Source§fn clone(&self) -> ShellWrapper
fn clone(&self) -> ShellWrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShellWrapper
impl Debug for ShellWrapper
Source§impl Default for ShellWrapper
impl Default for ShellWrapper
Source§impl From<ShellWrapper> for Shell
impl From<ShellWrapper> for Shell
Source§fn from(wrapper: ShellWrapper) -> Self
fn from(wrapper: ShellWrapper) -> Self
Converts to this type from the input type.
Source§impl FromStr for ShellWrapper
impl FromStr for ShellWrapper
Source§impl PartialEq for ShellWrapper
impl PartialEq for ShellWrapper
Source§impl TryFrom<&str> for ShellWrapper
impl TryFrom<&str> for ShellWrapper
impl Copy for ShellWrapper
impl Eq for ShellWrapper
impl StructuralPartialEq for ShellWrapper
Auto Trait Implementations§
impl Freeze for ShellWrapper
impl RefUnwindSafe for ShellWrapper
impl Send for ShellWrapper
impl Sync for ShellWrapper
impl Unpin for ShellWrapper
impl UnwindSafe for ShellWrapper
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