blob: fb1842cafdd431077264b9eaeae0197ba3be2743 [file] [log] [blame]
use DirEntry;
/// Unix-specific extension methods for `walkdir::DirEntry`
pub trait DirEntryExt {
/// Returns the underlying `d_ino` field in the contained `dirent`
/// structure.
fn ino(&self) -> u64;
}
impl DirEntryExt for DirEntry {
/// Returns the underlying `d_ino` field in the contained `dirent`
/// structure.
fn ino(&self) -> u64 {
self.ino
}
}