pub trait Step: LSend {
// Required method
fn step(
&self,
tokens: &[Token],
cursor: usize,
source: &[char],
) -> Option<isize>;
}Expand description
An atomic step within a larger expression.
Its principle job is to identify (if any) the next position of the cursor. When cursor is moved, all tokens between the current cursor and the target position will be added to the match group.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".