[][src]Enum email_parser::string::String

pub enum String<'a> {
    Reference(&'a [u8]),
    Owned(String),
}

Variants

Reference(&'a [u8])
Owned(String)

Implementations

impl<'a> String<'a>[src]

pub fn new() -> String<'static>[src]

pub fn is_owned(&self) -> bool[src]

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

pub fn into_owned(self) -> String<'static>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<'a> Add<String<'a>> for String<'a>[src]

type Output = String<'a>

The resulting type after applying the + operator.

impl<'a> AddAssign<String<'a>> for String<'a>[src]

impl<'a> Debug for String<'a>[src]

impl<'a> Default for String<'a>[src]

impl<'a, '_> PartialEq<&'_ str> for String<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for String<'a>

impl<'a> Send for String<'a>

impl<'a> Sync for String<'a>

impl<'a> Unpin for String<'a>

impl<'a> UnwindSafe for String<'a>

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<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.