Enum liner::Action [] [src]

pub enum Action {
    Insert {
        start: usize,
        text: Vec<char>,
    },
    Remove {
        start: usize,
        text: Vec<char>,
    },
}

Variants

Insert

Fields

start: usize
text: Vec<char>
Remove

Fields

start: usize
text: Vec<char>

Methods

impl Action
[src]

fn do_on(&self, buf: &mut Buffer)

fn undo(&self, buf: &mut Buffer)

Trait Implementations

impl Clone for Action
[src]

fn clone(&self) -> Action

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Action
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.