Skip to main content

with_ref_capture

Function with_ref_capture 

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

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