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

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; }

Something that acts like a text editor.

Required methods

fn delete_forwards(&mut self) -> OperationResult

In the sense of pressing the "Delete" key.

fn delete_backwards(&mut self) -> OperationResult

In the sense of pressing the "Backspace" key.

fn go_to_beginning_of_line(&mut self) -> OperationResult

In the sense of pressing the "Home" key.

fn go_to_end_of_line(&mut self) -> OperationResult

In the sense of pressing the "End" key.

fn clear(&mut self) -> OperationResult

Loading content...

Implementors

Loading content...