[][src]Enum resast::expr::StringLit

pub enum StringLit<'a> {
    Double(Cow<'a, str>),
    Single(Cow<'a, str>),
}

Variants

Double(Cow<'a, str>)
Single(Cow<'a, str>)

Methods

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

pub fn double_from(s: &'a str) -> StringLit<'a>[src]

pub fn single_from(s: &'a str) -> StringLit<'a>[src]

pub fn clone_inner(&self) -> Cow<'a, str>[src]

pub fn inner_matches(&self, o: &str) -> bool[src]

Trait Implementations

impl<'a> Clone for StringLit<'a>[src]

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

impl<'a> PartialEq<StringLit<'a>> for StringLit<'a>[src]

impl<'a> StructuralPartialEq for StringLit<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StringLit<'a>

impl<'a> Send for StringLit<'a>

impl<'a> Sync for StringLit<'a>

impl<'a> Unpin for StringLit<'a>

impl<'a> UnwindSafe for StringLit<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.