[][src]Function moxie_dom::prelude::once_with

pub fn once_with<Output, Ret>(
    expr: impl FnOnce() -> Output,
    with: impl FnOnce(&Output) -> Ret
) -> Ret where
    Output: 'static,
    Ret: 'static, 

Memoizes expr once at the callsite. Runs with on every iteration.

Environment Expectations

This function requires the following types to be visible to illicit::get and will panic otherwise: