Function ambient_api::prelude::ambient_element::consume_context
source · pub fn consume_context<T>(
hooks: &mut Hooks<'_>
) -> Option<(T, Arc<CbDebuggable<dyn Fn(T) + Sync + Send>>)>
Expand description
Consume a context of type T
provided further up the tree.
To provide context, use provide_context.