Type Definition perseus::state::TemplateState

source ·
pub type TemplateState = TemplateStateWithType<UnknownStateType>;
Expand description

A type alias for template state that has been converted into a Value without retaining the information of the original type, which is done internally to eliminate the need for generics, which cannot be used internally in Perseus for user state. The actual type is restored at the last minute when it’s needed.

Trait Implementations§

source§

impl<T: Serialize + DeserializeOwned> From<T> for TemplateState

source§

fn from(state: T) -> Self

Converts to this type from the input type.