zng_wgt::node

Function 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.