pub struct CompoundStep { /* private fields */ }
Expand description

A single-line step which controls multple controls including static and input elements.

Examples

use tty_form::{
    Form,
    step::{Step, CompoundStep},
    control::{Control, StaticText, TextInput},
};

let mut form = Form::new();

let mut step = CompoundStep::new();
StaticText::new("Welcome, ").add_to(&mut step);
TextInput::new("Enter your name:", false).add_to(&mut step);
step.add_to(&mut form);

Implementations

Create a new compound step with no controls.

Append the specified control to this step.

Set this step’s maximum total line length.

Trait Implementations

Perform any post-configuration initialization actions for this step.
Render this step at the specified position and return the height of the rendered content.
Handle the specified input event, optionally returning an instruction for the form.
Retrieve this step’s current help text.
Retrieve this step’s current drawer contents, if applicable.
Retrieves this step’s final WYSIWYG result.
Complete configuration and add this step to the form.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.