Expand description
This crate contains the lexer for the “dyn_quantity” crate. It is separated from “dyn_quantity” because the lexer is created using the logos macros. These expand into a lot of code, making it hard for language servers such as rust-analyzer to keep up. The separation makes it possible to use language servers together with “dyn_quantity”. See the README.md of “dyn_quantity” for further details.
Structs§
- Exponents
- Lexer
Lexeris the main struct of the crate that allows you to read through aSourceand produce tokens for enums implementing theLogostrait.
Enums§
Traits§
- Logos
- Trait implemented for an enum representing all tokens. You should never have
to implement it manually, use the
#[derive(Logos)]attribute on your enum.
Type Aliases§
- Span
- Byte range in the source.