1mod cursor; 2mod error; 3 4pub use cursor::*; 5pub use error::*; 6 7/// Parses one token value from the beginning of a lexer cursor. 8pub trait Scan: Sized { 9 fn scan(cursor: Cursor<'_>) -> Result<(Cursor<'_>, Self), LexError>; 10}