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

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

Required Methods§

source

fn elements(&self) -> FormElements

Get the elements for this form or subform.

source

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

Parse the elements into the resulting type.

Implementors§

source§

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