write_or_default

Function write_or_default 

Source
pub fn write_or_default<T>(f: impl FnOnce(&mut BoxDynTryDropStrategy) -> T) -> T
Expand description

Get a mutable reference to the current fallback thread local handler.

If the fallback thread local handler is not initialized yet, this will set the fallback thread local handler to the default one.