Function string_to_identHandler

Source
pub fn string_to_identHandler<T: StartMarker + Clone>(
    c: Configuration<T>,
    v: Variables<'_, T>,
    data: Option<TokenStream>,
    t: TokenStream,
) -> Result<(Variables<'_, T>, TokenStream), (Variables<'_, T>, TokenStream)>
Expand description

Turn a string into a named identifier.

Syntax: $(string_to_ident <stringValue>)

This allows the creation and reference of dynamic identifier names. Argument must be a string or an object with the to_string method.