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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".