[−][src]Struct structopt_utilities::completions::Shell
Shell wrapper type with additional traits.
Implementations
impl Shell[src]
pub unsafe fn parse_from_str_unchecked(text: &str) -> Self[src]
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[src]
Extract clap::Shell.
pub fn from_clap(clap: Shell) -> Self[src]
Wrap clap::Shell into Shell.
Trait Implementations
impl Clone for Shell[src]
impl Copy for Shell[src]
impl Debug for Shell[src]
impl Eq for Shell[src]
impl PartialEq<Shell> for Shell[src]
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
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[src]
fn pipe<Return>(self, f: impl FnOnce(Self) -> Return) -> Return[src]
fn pipe_ref<'a, Return>(&'a self, f: impl FnOnce(&'a Self) -> Return) -> Return[src]
fn pipe_mut<'a, Return>(
&'a mut self,
f: impl FnOnce(&'a mut Self) -> Return
) -> Return[src]
&'a mut self,
f: impl FnOnce(&'a mut Self) -> Return
) -> 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>,