Skip to main content

run

Function run 

Source
pub fn run<T>(f: impl FnOnce(CapRoot) -> T) -> T
Expand description

Creates a CapRoot and passes it to the given closure.

This is a convenience entry point. Panics if root() has already been called.