[−][src]Struct vtparse::VTParser
The virtual terminal parser. It works together with an implementation of VTActor.
Methods
impl VTParser[src]
pub fn new() -> Self[src]
pub fn parse_byte(&mut self, byte: u8, actor: &mut dyn VTActor)[src]
Parse a single byte. This may result in a call to one of the
methods on the provided actor.
pub fn parse(&mut self, bytes: &[u8], actor: &mut dyn VTActor)[src]
Parse a sequence of bytes. The sequence need not be complete.
This may result in some number of calls to 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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,