pub trait AsyncLexer {
type Value: Value;
type Error: Error;
// Required methods
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Token>>;
fn value(&self) -> Option<Result<Self::Value, Self::Error>>;
fn pos(&self) -> Pos;
}