(mut self)
| 46 | } |
| 47 | |
| 48 | pub fn pop_front(mut self) -> (String, Option<Ident>) { |
| 49 | if self.path.is_empty() { |
| 50 | (self.name, None) |
| 51 | } else { |
| 52 | let first = self.path.remove(0); |
| 53 | (first, Some(self)) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | pub fn prepend(self, mut parts: Vec<String>) -> Ident { |
| 58 | parts.extend(self); |
no test coverage detected