pub fn use_context_or_else<T, F>(cx: BoundedScope<'_, '_>, f: F) -> &Twhere
    T: 'static,
    F: FnOnce() -> T,
Expand description

Gets a context value of the given type or computes it from a closure.

Note that if no context exists, the new context will be created in the current scope. This means that the new value will still be inaccessible in an outer scope.