Struct rune::ast::LitByteStr[][src]

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

A string literal.

Fields

token: Token

The token corresponding to the literal.

source: StrSource

If the string literal is escaped.

Trait Implementations

impl Clone for LitByteStr[src]

impl Debug for LitByteStr[src]

impl Eq for LitByteStr[src]

impl Parse for LitByteStr[src]

Parse a string literal.

Examples

use rune::{testing, ast};

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

impl PartialEq<LitByteStr> for LitByteStr[src]

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

type Output = Cow<'a, [u8]>

The output type being resolved into.

impl ResolveOwned for LitByteStr[src]

type Owned = Vec<u8>

The output type being resolved into.

impl Spanned for LitByteStr[src]

impl StructuralEq for LitByteStr[src]

impl StructuralPartialEq for LitByteStr[src]

impl ToTokens for LitByteStr[src]

Auto Trait Implementations

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.