[][src]Struct cmdtree::CmdStr

pub struct CmdStr {
    pub inner_cow: Cow<'static, str>,
}

A command string can be static or owned.

Wraps a Cow<'static, str>. Implements From<&'static str> and From<String>.

Fields

inner_cow: Cow<'static, str>

Wrapped inner Cow<'static, str>.

Methods

impl CmdStr[src]

pub fn as_str(&self) -> &str[src]

Represent a string.

Trait Implementations

impl Clone for CmdStr[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<&'static str> for CmdStr[src]

impl From<String> for CmdStr[src]

impl Eq for CmdStr[src]

impl PartialEq<CmdStr> for CmdStr[src]

impl Deref for CmdStr[src]

type Target = str

The resulting type after dereferencing.

impl Display for CmdStr[src]

impl Debug for CmdStr[src]

Auto Trait Implementations

impl Unpin for CmdStr

impl Sync for CmdStr

impl Send for CmdStr

impl UnwindSafe for CmdStr

impl RefUnwindSafe for CmdStr

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]