Function zng::widget::node::with_context_local

source ยท
pub fn with_context_local<T>(
    child: impl UiNode,
    context: &'static ContextLocal<T>,
    value: impl Into<T>,
) -> impl UiNode
where T: Any + Send + Sync + 'static,
Expand description

Helper for declaring nodes that sets a context local value.

See context_local! for more details about contextual values.