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
Lexerfor creating token steam. - Automatically generates
serdeDeserializer when the trait is implemented. - Simplifies the implementation of Deserializer, such as lexers that split comma-separated strings into tokens.
Lexeris compatibility with thewinnowcrate, making implementation easier when usingwinnow.
Usage
use ;
use Deserializer;
use Deserialize;
;
let mut d = new;
assert_eq!;