pub trait Parser {
// Required methods
fn check_event(&self) -> bool;
fn peek_event(&self) -> Result<Option<&Event>>;
fn get_event(&mut self) -> Result<Option<Event>>;
fn reset(&mut self);
fn position(&self) -> Position;
}Expand description
Trait for YAML parsers that convert token streams to events
Required Methods§
Sourcefn check_event(&self) -> bool
fn check_event(&self) -> bool
Check if there are more events available
Sourcefn peek_event(&self) -> Result<Option<&Event>>
fn peek_event(&self) -> Result<Option<&Event>>
Peek at the next event without consuming it