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),
}
Expand description
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§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more