pub trait Scan: Sized {
// Required method
fn scan(cursor: Cursor<'_>) -> Result<(Cursor<'_>, Self), LexError>;
}Expand description
Parses one token value from the beginning of a lexer cursor.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".