Enum rune::ast::ObjectKey [−][src]
Expand description
Possible literal object keys.
Variants
A literal string (with escapes).
Tuple Fields of LitStr
0: LitStr
A path, usually an identifier.
Tuple Fields of Path
0: Path
Trait Implementations
Parse an object literal.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::ObjectKey>("foo"); testing::roundtrip::<ast::ObjectKey>("\"foo \\n bar\"");
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 ObjectKey
impl UnwindSafe for ObjectKey
Blanket Implementations
Mutably borrows from an owned value. Read more