uiri / SEGIMAP

IMAP (and LMTP) Server written in Rust
MIT License
32 stars 6 forks source link

Refactor away `parser` module #31

Open indiv0 opened 7 years ago

indiv0 commented 7 years ago

Currently the parser module contains the code for all of our nom-based parsers. Because these parsers produce types which already exist in our codebase, it would make sense to move these parsers from the parser module to parse methods in the implementations of these types themselves.

Perhaps they could even by unified behind a Parsable trait.