[][src]Function moxie::state::state

pub fn state<Init, Output>(initializer: Init) -> Key<Output> where
    Output: 'static,
    Init: FnOnce() -> Output, 

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