[−][src]Function moxie::memo::once_with
pub fn once_with<Stored, Ret>(
expr: impl FnOnce() -> Stored,
with: impl FnOnce(&Stored) -> Ret
) -> Ret where
Stored: 'static,
Ret: 'static,
Memoizes expr
once at the callsite. Runs with
on every iteration.