pub trait Step {
fn initialize(&mut self);
fn render(&mut self, position: Position, interface: &mut Interface<'_>);
fn handle_input(&mut self, event: KeyEvent) -> Option<InputResult>;
fn add_to_form(self, form: &mut Form);
}Expand description
A distinct, vertically-separated phase of the form.
Required Methods
fn initialize(&mut self)
sourcefn render(&mut self, position: Position, interface: &mut Interface<'_>)
fn render(&mut self, position: Position, interface: &mut Interface<'_>)
Render this step at the specified position.
sourcefn handle_input(&mut self, event: KeyEvent) -> Option<InputResult>
fn handle_input(&mut self, event: KeyEvent) -> Option<InputResult>
Handle the specified input event, optionally returning an instruction for the form.