[][src]Struct structopt_utilities::completions::Shell

pub struct Shell(pub 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<X> Pipe for X[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.