Trait ReadDir

Source
pub trait ReadDir {
    // Required method
    fn read_dir(&self, path: impl AsRef<Utf8Path>) -> Result<Vec<DirEntry>>;
}

Required Methods§

Source

fn read_dir(&self, path: impl AsRef<Utf8Path>) -> Result<Vec<DirEntry>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ReadDir for T
where T: FileSystem,