Hello Rust friends. Is it bad to implement Add and then use this boilerplate for AddAssign? impl AddAssign for Foo { fn add_assign(&mut self, rhs: Self) { *self = *self + rhs; } }
-
-
The context is like this: let begin_at = combine_opt(self.begin_at, rhs.begin_at, std::cmp::min); let end_at = combine_opt(self.end_at, rhs.end_at, std::cmp::max);
-
Oh no this is because `None < Some(_)`
- 6 more replies
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.