pub trait StateInstance: Any {
    // Provided method
    fn extract<T: Any + Send + Sync>(&self) -> Option<&T> { ... }
}

Provided Methods§

source

fn extract<T: Any + Send + Sync>(&self) -> Option<&T>

Extract the provided type from the state instance. If the type does not exist, or the state does not support extraction, None will be returned.

Implementors§