Trait UseState

Source
pub trait UseState {
    // Required method
    fn use_state<S>(&mut self, key: Key, initial_value: S) -> State<S>
       where S: Serialize + for<'b> Deserialize<'b> + 'static;
}

Required Methods§

Source

fn use_state<S>(&mut self, key: Key, initial_value: S) -> State<S>
where S: Serialize + for<'b> Deserialize<'b> + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, P> UseState for Manager<'a, P>
where P: Platform + ?Sized,