Skip to main content

scope

Function scope 

Source
pub fn scope(label: Label, root: Option<&Path>) -> ScopeGuard
Expand description

Attributes this thread’s allocations to label until the guard drops. With a root, events name that repository; without one the current root, if any, stays.