Struct rune::ast::LitByte [−][src]
pub struct LitByte { pub token: Token, pub source: CopySource<u8>, }
Expand description
A byte literal.
Fields
token: Token
The token corresponding to the literal.
source: CopySource<u8>
The source of the byte.
Trait Implementations
Parse a byte literal.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::LitByte>("b'a'"); testing::roundtrip::<ast::LitByte>("b'\\0'"); testing::roundtrip::<ast::LitByte>("b'\\n'"); testing::roundtrip::<ast::LitByte>("b'\\r'"); testing::roundtrip::<ast::LitByte>("b'\\\\''");
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 LitByte
impl UnwindSafe for LitByte
Blanket Implementations
Mutably borrows from an owned value. Read more