(&mut self)
| 295 | |
| 296 | impl<T> Drop for TrieST<T> { |
| 297 | fn drop(&mut self) { |
| 298 | fn visitor<T>(p: Option<NonNull<Node<T>>>) { |
| 299 | if let Some(p) = p { |
| 300 | let next = unsafe { Box::from_raw(p.as_ptr()).next }; |
| 301 | next.iter().for_each(|it| visitor(*it)); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | let root = self.root.take(); |
| 306 | visitor(root); |
| 307 | self.n = 0; |
| 308 | } |
| 309 | } |
nothing calls this directly
no outgoing calls
no test coverage detected