Struct rune::ast::LitStr[][src]

pub struct LitStr {
    pub token: Token,
    pub source: StrSource,
}

A string literal.

Fields

token: Token

The token corresponding to the literal.

source: StrSource

The source of the literal string.

Trait Implementations

impl Clone for LitStr[src]

impl Debug for LitStr[src]

impl Eq for LitStr[src]

impl Parse for LitStr[src]

Parse a string literal.

Examples

use rune::{testing, ast};

testing::roundtrip::<ast::LitStr>("\"hello world\"");
testing::roundtrip::<ast::LitStr>("\"hello\\nworld\"");

impl PartialEq<LitStr> for LitStr[src]

impl<'a> Resolve<'a> for LitStr[src]

type Output = Cow<'a, str>

The output type being resolved into.

impl ResolveOwned for LitStr[src]

type Owned = String

The output type being resolved into.

impl Spanned for LitStr[src]

impl StructuralEq for LitStr[src]

impl StructuralPartialEq for LitStr[src]

impl ToTokens for LitStr[src]

Auto Trait Implementations

impl RefUnwindSafe for LitStr

impl Send for LitStr

impl Sync for LitStr

impl Unpin for LitStr

impl UnwindSafe for LitStr

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.