diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-28 21:42:00 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-28 21:42:00 +0100 |
| commit | 765b569282c0494b2c7bac54d895a63b0577072a (patch) | |
| tree | 84aa78943136ed2ef41f92d4b9161c60ae640ef5 /testdata | |
| parent | 3aaddf6759e6865d4a9ca3dd24f1ef7d2906a9d1 (diff) | |
| download | mihi-765b569282c0494b2c7bac54d895a63b0577072a.tar.gz mihi-765b569282c0494b2c7bac54d895a63b0577072a.zip | |
Move declension/conjugation IDs into enums
There were quite a lot of hacks that came out of my laziness on refusing
to give inflections their own proper enums. This commit introduces this,
while also providing implementations for the traits involving SQL. This
way, moving data in and out from these enums feels more seamless.
One advantage from this move is that a lot of redundant checks are gone,
as the validation checks are performed when fetching the data. This is
one of those times in which type masturbation as encouraged by the Rust
programming language actually makes sense.
Last but not least, this conversion also allows us to perform a change
on the creation/edit of words, as suggestions can be done for
conjugations/declensions and their kinds.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'testdata')
0 files changed, 0 insertions, 0 deletions
