Skip to main content

with_singleton_capture

Function with_singleton_capture 

Source
pub fn with_singleton_capture<R>(
    f: impl FnOnce() -> R,
) -> (R, Vec<(Ident, HydroNode)>)
Expand description

Activate the singleton reference capture context. Must be called before q!() expansion that may capture singletons. Returns the captured references when the scope ends.