Struct rune::ast::LitStr [−][src]
Expand description
A string literal.
Fields
token: Token
The token corresponding to the literal.
source: StrSource
The source of the literal string.
Trait Implementations
Parse a string literal.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::LitStr>("\"hello world\""); testing::roundtrip::<ast::LitStr>("\"hello\\nworld\"");
Parse the current item from the parser.
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 LitStr
impl UnwindSafe for LitStr
Blanket Implementations
Mutably borrows from an owned value. Read more