(&self)
| 34 | } |
| 35 | |
| 36 | fn is_empty(&self) -> bool { |
| 37 | let mut empty = true; |
| 38 | for &d in self.slot.iter() { |
| 39 | if 0 != d { |
| 40 | empty = false; |
| 41 | break; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | empty |
| 46 | } |
| 47 | |
| 48 | fn clear(&mut self) { |
| 49 | let mut slot = Vec::with_capacity(self.cap); |
no test coverage detected