Function try_use_context

Source
pub fn try_use_context<T: Clone + 'static>() -> Option<T>
Expand description

Tries to get a context value of the given type. If no context is found, returns None.