Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unix.rs « src - github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c8f495fe9a4af275bfd2deb387f8d4a7aeab6431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
    }
}