Skip to main content

Module singleton_ref

Module singleton_ref 

Source
Expand description

Singleton reference handle for capturing singletons in q!() closures.

Structs§

SingletonRef
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.