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