Вам не нужны bool и Option
Full story
The article argues that developers should stop relying on bool and Option in Rust. It uses Rust examples to show how enums can describe modes and states, making code easier to read. The approach also lets the compiler prevent invalid states from being created.
Расскажу, почему вам нужно отказаться от bool и Option. На примерах Rust покажу, как описать режимы и состояния через enum, чтобы код было проще читать, а компилятор не позволял создавать недопустимые состояния. Читать далее