mc1098 / ci601

Command line tool for searching and editing bibliographic entries to a supported format file. [Uni work]
MIT License
0 stars 0 forks source link

Remove concrete `Entry` for `dyn EntryExt` #126

Closed mc1098 closed 2 years ago

mc1098 commented 2 years ago

The Entry enum before made the design to fragile and making breaking changes were too easy, it was also impossible to extend the entry types because of the Entry enum and the EntryKind enum.

The Entry type has been removed in favour of using a Box<dyn EntryExt> which relies on dynamic dispatch of the trait object.

EntryKind type has been removed and string kind is used instead so that the entry types can be extended too.