Like in C, you can set a int parameter as flags, so you can know if some flag is set by doing & operation. Of course, I know in Rust I can do the same thing. But is there a safer and more elegant way to do that? Cause there're multiple groups of flags, I'm worrying I may mix them up and set wrong flags.