DirWalker

Trait DirWalker 

Source
pub trait DirWalker<'vfs>: 'vfs {
    type P: PathType + ?Sized;

    // Required method
    fn next(
        &mut self,
    ) -> Option<Result<DirEntryInfo<Self::P>, <Self::P as PathType>::OwnedPath>>;
}
Expand description

A trait for walking a directory.

Behaves similarly to an Iterator over Result<DirEntryInfo, <Self::P as PathType>::OwnedPath>.

Required Associated Types§

Source

type P: PathType + ?Sized

The path type used by this directory walker.

This is the same as the path type used by the Vfs that created this walker.

Required Methods§

Source

fn next( &mut self, ) -> Option<Result<DirEntryInfo<Self::P>, <Self::P as PathType>::OwnedPath>>

Returns the next directory entry.

Implementors§