[][src]Function moxie::state

pub fn state<Output>(
    init: impl FnOnce() -> Output
) -> (Commit<Output>, Key<Output>) where
    Output: 'static, 

Root a state variable at this callsite, returning a Key to the state variable.

Environment Expectations

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