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: fb1842cafdd431077264b9eaeae0197ba3be2743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
    }
}