[][src]Enum liner::Action

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

A modification performed on a Buffer. These are used for the purpose of undo/redo.

Variants

Insert

Fields of Insert

start: usizetext: Vec<char>
Remove

Fields of Remove

start: usizetext: Vec<char>
StartGroup
EndGroup

Methods

impl Action[src]

pub fn do_on(&self, buf: &mut Buffer)[src]

pub fn undo(&self, buf: &mut Buffer)[src]

Trait Implementations

impl Clone for Action[src]

impl Debug for Action[src]

Auto Trait Implementations

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl UnwindSafe for Action

impl RefUnwindSafe for Action

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]