Struct rsfs::mem::unix::DirEntry [] [src]

pub struct DirEntry { /* fields omitted */ }

Entries returned by the ReadDir iterator.

An instance of DirEntry implements rsfs::DirEntry and represents an entry inside a directory on the in-memory filesystem.

Examples

let fs = FS::new();
for entry in fs.read_dir(".")? {
    let entry = entry?;
    println!("{:?}: {:?}", entry.path(), entry.metadata()?.permissions());
}

Trait Implementations

impl Debug for DirEntry
[src]

Formats the value using the given formatter.

impl DirEntry for DirEntry
[src]

The Metadata type in the same module implementing this trait.

The FileType type in the same module implementing this trait.

Returns the full path to the file or directory this entry represents. Read more

Returns metadata for the file this entry represents. Read more

Returns the file type for what this entry points at. Read more

Returns the base name of the file or directory this entry represents. Read more