Trait unsegen::input::Editable[][src]

pub trait Editable: Navigatable + Writable {
    fn delete_forwards(&mut self) -> OperationResult;
fn delete_backwards(&mut self) -> OperationResult;
fn go_to_beginning_of_line(&mut self) -> OperationResult;
fn go_to_end_of_line(&mut self) -> OperationResult;
fn clear(&mut self) -> OperationResult; }
Expand description

Something that acts like a text editor.

Required methods

fn delete_forwards(&mut self) -> OperationResult[src]

In the sense of pressing the “Delete” key.

fn delete_backwards(&mut self) -> OperationResult[src]

In the sense of pressing the “Backspace” key.

fn go_to_beginning_of_line(&mut self) -> OperationResult[src]

In the sense of pressing the “Home” key.

fn go_to_end_of_line(&mut self) -> OperationResult[src]

In the sense of pressing the “End” key.

fn clear(&mut self) -> OperationResult[src]

Remove all content.

Implementors