scope

Function scope 

Source
pub fn scope(strategy: impl ThreadLocalFallibleTryDropStrategy) -> ScopeGuard
Expand description

Sets the thread local primary handler to the given one for the duration of the given scope. For more advanced usage, see the ScopeGuard type.