Module context

Module context 

Source

Structs§

GlobalContextGuard
Guard returned by set_global_context.

Functions§

set_global_context
Sets a thread-local global context for type C.
try_with_global_context
Like with_global_context but returns Ok(None) when context is missing.
with_global_context
Runs f with a mutable reference to thread-local global context C.