Skip to main content

expand_fn

Function expand_fn 

Source
pub(crate) fn expand_fn<T: From<TokenStream>>(
    attr: TokenStream,
    item: TokenStream,
) -> T
Expand description

#[miniextendr] on a function. It reads proc_macro2 tokens and returns the token type its caller asks for: proc_macro’s from the attribute, or proc_macro2’s in the unit tests, which run outside a proc macro.