pub trait ToTokenStream: ToTokens<TokenStream> {
// Provided methods
fn to_token_stream(&self) -> TokenStream { ... }
fn into_token_stream(self) -> TokenStream
where Self: Sized { ... }
}Provided Methods§
fn to_token_stream(&self) -> TokenStream
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".