pub trait ToTokens {
// Required method
fn to_tokens(
&self,
context: &mut MacroContext<'_, '_, '_>,
stream: &mut TokenStream
) -> Result<()>;
}
Expand description
Trait for things that can be turned into tokens.
Required Methods§
sourcefn to_tokens(
&self,
context: &mut MacroContext<'_, '_, '_>,
stream: &mut TokenStream
) -> Result<()>
fn to_tokens( &self, context: &mut MacroContext<'_, '_, '_>, stream: &mut TokenStream ) -> Result<()>
Turn the current item into tokens.