Skip to main content

TryIntoTokenStream

Trait TryIntoTokenStream 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TryIntoTokenStream for &&String

Source§

impl TryIntoTokenStream for &&str

Source§

impl TryIntoTokenStream for &String

Source§

impl TryIntoTokenStream for &TokenStream

Source§

impl TryIntoTokenStream for &str

Source§

impl TryIntoTokenStream for String

Source§

impl TryIntoTokenStream for TokenStream

Implementors§