with_context_local

Function with_context_local 

Source
pub fn with_context_local<T>(
    child: impl IntoUiNode,
    context: &'static ContextLocal<T>,
    value: impl Into<T>,
) -> 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.