Skip to main content

with_singleton_capture

Function with_singleton_capture 

Source
pub fn with_singleton_capture(f: impl FnOnce() -> DebugExpr) -> ClosureExpr
Expand description

Activate the singleton reference capture context. Must be called before q!() expansion that may capture singletons. Returns a ClosureExpr bundling the expression with any captured singleton references.