wildcard import enum constants like the following in Rust is generally considered a very bad idea:
use SomeEnum::*
This is because if you write a typo when match
ing this enum, Rust will not give any warning and silently create a new variable.
Created: May 01, 2024Last Modified: May 01, 2024
wildcard import enum constants like the following in Rust is generally considered a very bad idea:
use SomeEnum::*
This is because if you write a typo when match
ing this enum, Rust will not give any warning and silently create a new variable.