[−]Struct pretty_exec::structopt_utilities::completions::Shell
Shell wrapper type with additional traits.
Implementations
impl Shell
pub unsafe fn parse_from_str_unchecked(text: &str) -> Shell
Convert a string to Shell
Safety
It is safe when text is always one of ["bash", "fish", "zsh", "powershell", "elvish"].
Otherwise, it returns unreachable_unchecked().
pub fn to_clap(self) -> Shell
Extract clap::Shell.
pub fn from_clap(clap: Shell) -> Shell
Wrap clap::Shell into Shell.
Trait Implementations
impl Clone for Shell
pub fn clone(&self) -> Shell
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Shell
impl Debug for Shell
impl Eq for Shell
impl PartialEq<Shell> for Shell
Auto Trait Implementations
impl RefUnwindSafe for Shell[src]
impl Send for Shell[src]
impl Sync for Shell[src]
impl Unpin for Shell[src]
impl UnwindSafe for Shell[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<X> Pipe for X
pub fn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
Function: FnOnce(Self) -> Return,
pub fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
Function: FnOnce(&'a Self) -> Return,
pub fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
Function: FnOnce(&'a mut Self) -> Return,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,