[−]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
fn clone(&self) -> Shell
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
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,