[][src]Enum genco::ItemStr

pub enum ItemStr {
    Box(Box<str>),
    Static(&'static str),
}

A managed string that permits immutable borrowing.

Variants

Box(Box<str>)

A refcounted string.

Static(&'static str)

A static string.

Trait Implementations

impl AsRef<str> for ItemStr[src]

impl Clone for ItemStr[src]

impl Debug for ItemStr[src]

impl Deref for ItemStr[src]

type Target = str

The resulting type after dereferencing.

impl Display for ItemStr[src]

impl Eq for ItemStr[src]

impl<L> FormatTokens<L> for ItemStr where
    L: Lang
[src]

Convert stringy things.

impl<'a, L> FormatTokens<L> for &'a ItemStr where
    L: Lang
[src]

impl<'a, 'b> From<&'a Cow<'b, str>> for ItemStr[src]

impl<'a> From<&'a ItemStr> for ItemStr[src]

impl<'a> From<&'a String> for ItemStr[src]

impl<'a> From<&'a str> for ItemStr[src]

impl From<Box<str>> for ItemStr[src]

impl<'a> From<Cow<'a, str>> for ItemStr[src]

impl<L> From<ItemStr> for Item<L> where
    L: Lang
[src]

impl From<ItemStr> for Name[src]

impl From<Rc<String>> for ItemStr[src]

impl From<String> for ItemStr[src]

impl Hash for ItemStr[src]

impl Ord for ItemStr[src]

impl PartialEq<ItemStr> for ItemStr[src]

impl PartialOrd<ItemStr> for ItemStr[src]

impl StructuralEq for ItemStr[src]

impl StructuralPartialEq for ItemStr[src]

Auto Trait Implementations

impl RefUnwindSafe for ItemStr

impl Send for ItemStr

impl Sync for ItemStr

impl Unpin for ItemStr

impl UnwindSafe for ItemStr

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> DisplayExt for T where
    T: Display
[src]

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

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

impl<T> QuotedExt for T where
    T: Into<ItemStr>, 
[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, 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.