(&mut self, key: String, val: i32)
| 18 | } |
| 19 | |
| 20 | fn insert(&mut self, key: String, val: i32) { |
| 21 | if let Some(x) = self.mmp.get_mut(&key) { |
| 22 | *x = val; |
| 23 | } else { |
| 24 | self.mmp.insert(key, val); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | fn sum(&mut self, prefix: String) -> i32 { |
| 29 | let mut ret = 0; |
no outgoing calls
no test coverage detected