[][src]Function moxie::once

pub fn once<Output>(expr: impl FnOnce() -> Output) -> Output where
    Output: Clone + 'static, 

Runs the provided expression once per topo::CallId. The provided value will always be cloned on subsequent calls unless dropped from storage and reinitialized in a later Revision.

Environment Expectations

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