Skip to main content

Module process_singletons

Module process_singletons 

Source
Expand description

Utility methods for processing singleton references: #my_var, #mut my_var, #{N} my_var, #{N} mut my_var.

Functionsยง

postprocess_singletons
Replaces singleton references with the code needed to actually get the value inside.
preprocess_singletons
Finds all the singleton references and appends them to found. Returns the TokenStream but with the #, {N}, and mut removed from the varnames.