(&mut self, key: usize)
| 168 | } |
| 169 | |
| 170 | fn get_mut(&mut self, key: usize) -> Option<&mut T> { |
| 171 | let curr = self.get_pos(key); |
| 172 | self.data.get_mut(curr) |
| 173 | } |
| 174 | |
| 175 | fn contains(&self, key: usize) -> bool { |
| 176 | if 0 == key { panic!("Error: key must > 0"); } |