A lint to ensure all `.is_*()` methods are implemented would be nice. pub enum Bool True, False } impl Bool { pub fn is_true(&self) -> bool { *self == Bool::True } pub fn is_false(&self) -> bool { *self == Bool::False } }
-
-
What would probably be nice here is a custom derive that generates is_foo methods
-
This would be fantastic!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.