Skip to main content

SysReadDirEntry

Trait SysReadDirEntry 

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

Required Methods§

Source

fn file_name(&self) -> OsString

Gets the file name of the directory entry, not the full path.

Source

fn path(&self) -> PathBuf

Gets the full path of the directory entry.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SysReadDirEntry for DirEntry

Implementors§