pub struct VTParser { /* private fields */ }
Expand description
The virtual terminal parser. It works together with an implementation of VTActor
.
Implementations
sourceimpl VTParser
impl VTParser
pub fn new() -> Self
sourcepub fn is_ground(&self) -> bool
pub fn is_ground(&self) -> bool
Returns if the state machine is in the ground state, i.e. there is no pending state held by the state machine.
sourcepub fn parse_byte(&mut self, byte: u8, actor: &mut dyn VTActor)
pub fn parse_byte(&mut self, byte: u8, actor: &mut dyn VTActor)
Parse a single byte. This may result in a call to one of the
methods on the provided actor
.
Auto Trait Implementations
impl RefUnwindSafe for VTParser
impl Send for VTParser
impl Sync for VTParser
impl Unpin for VTParser
impl UnwindSafe for VTParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more