Expand description
Utility methods for processing singleton references: #my_var
.
Functions§
- postprocess_
singletons - Replaces singleton references
#my_var
with the code needed to actually get the value inside. - postprocess_
singletons_ handles - Same as
postprocess_singletons
but generates just theStateHandle
ident rather than fullRefCell
borrowing code. - preprocess_
singletons - Finds all the singleton references
#my_var
and appends them tofound_idents
. Returns theTokenStream
but with the hashes removed from the varnames.