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

Render this step at the specified position.

Handle the specified input event, optionally returning an instruction for the form.

Implementors