Removes a day from the collection Returns `true` if the collection did contain the day
(&mut self, day: Weekday)
| 64 | // Removes a day from the collection |
| 65 | // Returns `true` if the collection did contain the day |
| 66 | fn remove(&mut self, day: Weekday) -> bool { |
| 67 | if self.contains(day) { |
| 68 | self.0 &= !Self::single(day).0; |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | false |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | // An iterator over a collection of weekdays, starting from a given day |