pub trait IntoLit {
// Required method
fn into_lit(self, cx: &mut MacroContext<'_, '_, '_>) -> Result<Lit>;
}
Expand description
Helper trait used for things that can be converted into tokens.
Required Methods§
Sourcefn into_lit(self, cx: &mut MacroContext<'_, '_, '_>) -> Result<Lit>
fn into_lit(self, cx: &mut MacroContext<'_, '_, '_>) -> Result<Lit>
Convert the current thing into a token.