Function zng_wgt::node::with_context_local

source ยท
pub fn with_context_local<T: Any + Send + Sync + 'static>(
    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.