Trait FormState

Source
pub trait FormState<T> {
    // Required method
    fn parse(&self) -> Result<T, ()>;
}
Expand description

An object representing a form (the state of the form).

Required Methods§

Source

fn parse(&self) -> Result<T, ()>

Parse the elements into the resulting type.

Implementors§

Source§

impl<C: 'static + Clone, T: FormWith<C>> FormState<T> for VariantUnitFormState<C, T>

Source§

impl<C: 'static + Clone, V: FormWith<C>, T: FormWith<C>> FormState<T> for VariantWrapFormState<C, V, T>

Source§

impl<E: Display, T: FromStr<Err = E>> FormState<T> for FromStrFormState