run_borrowed

Function run_borrowed 

Source
pub unsafe fn run_borrowed<H: Store, T, F: FnOnce() -> T>(
    store: &H,
    task: F,
) -> T
Expand description

Run a closure using a chosen global allocator, with a non 'static lifetime.

ยงSafety

Ensure that objects allocated with the provided store do not escape the given closure.