Function as_child_of_current_scope

Source
pub fn as_child_of_current_scope<T, U>(
    f: impl Fn(T) -> U + 'static,
) -> impl Fn(T) -> (U, Scope)
where T: 'static,
Expand description

Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope