pub fn with_context_local<T>(
child: impl UiNode,
context: &'static ContextLocal<T>,
value: impl Into<T>,
) -> impl UiNode
Expand description
Helper for declaring nodes that sets a context local value.
See context_local!
for more details about contextual values.