Struct tty_form::TextBlockStep
source · [−]pub struct TextBlockStep { /* private fields */ }Expand description
A multi-line text input step.
Examples
use tty_form::Form;
let mut form = Form::default();
let mut step = form.add_text_block_step();
step.set_max_line_length(100);Implementations
sourceimpl TextBlockStep
impl TextBlockStep
Trait Implementations
sourceimpl Step for TextBlockStep
impl Step for TextBlockStep
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.
fn add_to_form(self, form: &mut Form)
Auto Trait Implementations
impl RefUnwindSafe for TextBlockStep
impl Send for TextBlockStep
impl Sync for TextBlockStep
impl Unpin for TextBlockStep
impl UnwindSafe for TextBlockStep
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more