[][src]Enum term_parser::Action

pub enum Action {
    Csi {
        intermediates: [u8; 2],
        intermediates_count: usize,
        params: [usize; 16],
        params_count: usize,
        byte: u8,
    },
    Esc {
        intermediates: [u8; 2],
        intermediates_count: usize,
        params: [usize; 16],
        params_count: usize,
    },
    Execute(u8),
    Hook {
        intermediates: [u8; 2],
        intermediates_count: usize,
        params: [usize; 16],
        params_count: usize,
    },
    OscEnd(),
    OscPut(u8),
    OscStart(),
    Print(char),
    Put(u8),
    Unhook(u8),
}

An action, as described in Paul Williams' ANSI-compatible video terminal parser. To prevent heap allocation, intermediate and param bytes use arrays instead of Vecs. Be sure to only read intermediates_count bytes from intermediates and params_count bytes from params.

Variants

Csi

Fields of Csi

intermediates: [u8; 2]intermediates_count: usizeparams: [usize; 16]params_count: usizebyte: u8
Esc

Fields of Esc

intermediates: [u8; 2]intermediates_count: usizeparams: [usize; 16]params_count: usize
Execute(u8)Hook

Fields of Hook

intermediates: [u8; 2]intermediates_count: usizeparams: [usize; 16]params_count: usize
OscEnd()OscPut(u8)OscStart()Print(char)Put(u8)Unhook(u8)

Trait Implementations

impl PartialEq<Action> for Action[src]

impl Debug for Action[src]

Auto Trait Implementations

impl Unpin for Action

impl Send for Action

impl Sync for Action

impl RefUnwindSafe for Action

impl UnwindSafe for Action

Blanket Implementations

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

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

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

type Error = Infallible

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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