diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-05-11 18:26:50 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-05-11 18:26:50 +0200 |
commit | 84f9e577cf6bd537baa954684580a8c322724c23 (patch) | |
tree | e19671c1d9ba7898b5ded2a100975aab995a7f3b /src/statistics | |
parent | 02647a66181a6abc49c4dda57138e8752d9427d8 (diff) | |
download | evtclib-84f9e577cf6bd537baa954684580a8c322724c23.tar.gz evtclib-84f9e577cf6bd537baa954684580a8c322724c23.tar.bz2 evtclib-84f9e577cf6bd537baa954684580a8c322724c23.zip |
add Display implementation for gamedata
This is something that a lot of applications will probably have to
implement anyway, so we might as well provide it and do it within Rusts
standard traits.
This does not provide localization, but it uses the English names, which
should be good enough for most cases.
Since we provide FromStr for those classes as well, it makes
double-sense to add Display. However, not all cases are currently
reversible ("Cairn the Indomitable" vs "Cairn"), although the status quo
seems fine for now (most people type Cairn, but when outputting we can
use the full name).
Diffstat (limited to 'src/statistics')
0 files changed, 0 insertions, 0 deletions