pub struct VTParser { /* private fields */ }Expand description
The virtual terminal parser. It works together with an implementation of VTActor.
Implementations§
Source§impl 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 Freeze for VTParser
impl RefUnwindSafe for VTParser
impl Send for VTParser
impl Sync for VTParser
impl Unpin for VTParser
impl UnwindSafe for VTParser
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