pub struct InputParser { /* private fields */ }Expand description
Terminal input parser with DoS protection.
Parse terminal input bytes into events:
ⓘ
let mut parser = InputParser::new();
let events = parser.parse(b"\x1b[A"); // Up arrow
assert_eq!(events.len(), 1);Implementations§
Trait Implementations§
Source§impl Debug for InputParser
impl Debug for InputParser
Auto Trait Implementations§
impl Freeze for InputParser
impl RefUnwindSafe for InputParser
impl Send for InputParser
impl Sync for InputParser
impl Unpin for InputParser
impl UnwindSafe for InputParser
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