P3KI / bendy

A rust library for encoding and decoding bencode with enforced cannonicalization rules.
BSD 3-Clause "New" or "Revised" License
70 stars 13 forks source link

Extract `StateTracker` trait #46

Open 0ndorio opened 3 years ago

0ndorio commented 3 years ago

This pull requests introduces a new StateTracker trait, based on the public interface of the old StateTracker struct. To avoid any naming clashes the old struct got renamed into StrictTracker.

This is the first of three pull requests to introduce relaxed StateTracker implementation as @thequux supposed in https://github.com/P3KI/bendy/issues/44#issuecomment-678833957.


Feel free to nitpick as much as possible :grin: