anyseq
anyseq is a Rust crate that provides a trait named Lexer
for splitting structured text into string tokens.
By implementing this trait, Deserializer
for serde
are automatically generated.
Features
- Provides a trait named
Lexer
for creating token steam. - Automatically generates
serde
Deserializer when the trait is implemented. - Simplifies the implementation of Deserializer, such as lexers that split comma-separated strings into tokens.
Lexer
is compatibility with thewinnow
crate, making implementation easier when usingwinnow
.
Usage
use ;
use Deserializer;
use Deserialize;
;
let mut d = new;
assert_eq!;