pub trait ParserInput: Clone + Iterator<Item = TokenAndSpan> {
type State: Debug;
// Required methods
fn start_pos(&mut self) -> BytePos;
fn state(&mut self) -> Self::State;
fn reset(&mut self, state: &Self::State);
fn take_errors(&mut self) -> Vec<Error>;
fn skip_ws(&mut self) -> Option<BytePos>;
fn atom(&self, s: Cow<'_, str>) -> Atom;
}
Required Associated Types§
Required Methods§
fn start_pos(&mut self) -> BytePos
fn state(&mut self) -> Self::State
fn reset(&mut self, state: &Self::State)
fn take_errors(&mut self) -> Vec<Error>
fn atom(&self, s: Cow<'_, str>) -> Atom
Object Safety§
This trait is not object safe.