Expand description
Singleton reference handle for capturing singletons in q!() closures.
Structs§
- Singleton
Ref - A lightweight handle to a singleton that can be captured inside
q!()closures.
Functions§
- with_
singleton_ capture - Activate the singleton reference capture context. Must be called before
q!()expansion that may capture singletons. Returns the captured references when the scope ends.