Refactor pkgver comparison algorithm
Resolves #39 (closed)
This MR cleans up the Pkgver comparison algorithm by
- Implementing an Iterator over a Version's segments
- Writing detailed inline documentation on the comparison algorithm
- Converting the existing code into ideomatic Rust instead of C-style code
The MR is designed to be reviewed commit-by-commit
Edited by Arne Beer