Struct rune::ast::LitByteStr [−][src]
Expand description
A string literal.
Fields
token: Token
The token corresponding to the literal.
source: StrSource
If the string literal is escaped.
Trait Implementations
Parse a string literal.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::LitByteStr>("b\"hello world\""); testing::roundtrip::<ast::LitByteStr>("b\"hello\\nworld\"");
Parse the current item from the parser.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn resolve_owned(
&self,
storage: &Storage,
source: &Source
) -> Result<Self::Owned, ResolveError>
fn resolve_owned(
&self,
storage: &Storage,
source: &Source
) -> Result<Self::Owned, ResolveError>
Resolve into an owned value.
Turn the current item into tokens.
Auto Trait Implementations
impl RefUnwindSafe for LitByteStr
impl Send for LitByteStr
impl Sync for LitByteStr
impl Unpin for LitByteStr
impl UnwindSafe for LitByteStr
Blanket Implementations
Mutably borrows from an owned value. Read more