#023
Dec 6, 2022
23. Enum's default value
Instead of manually implementing Default trait for an enum, you can derive it and explicitly tell which variant should be the default one.
| |
Instead of manually implementing Default trait for an enum, you can derive it and explicitly tell which variant should be the default one.
| |