pub trait TryIntoTokenStream: ToTokenStream {
// Required method
fn try_into_token_stream(self) -> Result<TokenStream, LexError>;
}Expand description
Fallibly converts a parsing input into a TokenStream.
Unlike ToTokenStream, this trait is intended for input that may need
lexing, such as Rust source text.
Required Methods§
fn try_into_token_stream(self) -> Result<TokenStream, LexError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".