rune::macros

Function quote_fn

Source
pub fn quote_fn<'a, T>(f: T) -> Quote<'a>
where T: 'a + Fn(&mut MacroContext<'_, '_, '_>, &mut TokenStream) -> Result<()> + Send + Sync,
Expand description

Construct a token stream from a function.