pub trait DirEntry { // Required methods fn file_name(&self) -> OsString; fn path(&self) -> PathBuf; }