(&mut self)
| 390 | type Item = Result<DirEntry, SyscallError>; |
| 391 | |
| 392 | fn next(&mut self) -> Option<Self::Item> { |
| 393 | if let Some(entry) = self.entries.pop() { |
| 394 | return Some(Ok(entry)); |
| 395 | } |
| 396 | None |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | pub fn read_dir<P: AsRef<Path>>( |