1mod cursor; 2mod error; 3 4pub use cursor::*; 5pub use error::*; 6 7pub trait Scan: Sized { 8 fn scan(cursor: Cursor<'_>) -> Result<(Cursor<'_>, Self), LexError>; 9}