(&mut self, clause: String)
| 340 | } |
| 341 | |
| 342 | fn set_catch_all(&mut self, clause: String) { |
| 343 | assert!(self.catch_all.is_none()); |
| 344 | self.catch_all = Some(clause); |
| 345 | } |
| 346 | |
| 347 | /// Add an arm that reads fields to the Match statement. |
| 348 | pub fn arm<T: Into<String>, S: Into<String>>(&mut self, name: T, fields: Vec<S>, body: T) { |