[]Struct pretty_exec::structopt_utilities::completions::Shell

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

impl Copy for Shell

impl Debug for Shell

impl Eq for Shell

impl PartialEq<Shell> for Shell

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.