pub fn parse_tokens(s: &str) -> Result<TokenStream, EmitError>Expand description
Lex an emitter-produced Rust fragment into tokens.
ยงErrors
Returns EmitError::Lex when the fragment is not valid Rust tokens,
which is an emitter bug.
pub fn parse_tokens(s: &str) -> Result<TokenStream, EmitError>Lex an emitter-produced Rust fragment into tokens.
Returns EmitError::Lex when the fragment is not valid Rust tokens,
which is an emitter bug.