[][src]Enum target_lexicon::CustomVendor

pub enum CustomVendor {
    Owned(Box<String>),
    Static(&'static str),
}

A string for a Vendor::Custom that can either be used in const contexts or hold dynamic strings.

Variants

Owned(Box<String>)

An owned String. This supports the general case.

Static(&'static str)

A static str, so that CustomVendor can be constructed in const contexts.

Methods

impl CustomVendor[src]

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

Extracts a string slice.

Trait Implementations

impl Debug for CustomVendor[src]

impl PartialEq<CustomVendor> for CustomVendor[src]

impl Eq for CustomVendor[src]

impl Hash for CustomVendor[src]

impl StructuralEq for CustomVendor[src]

impl Clone for CustomVendor[src]

Auto Trait Implementations

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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]

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

type Owned = T

The resulting type after obtaining ownership.