Rust iterators and iterator adaptors useful when iterating over the file system.
- component_filter: Export the struct
ComponentFilter
. Filter items where any of its path's Components equals one given as parameter. - entry_to_path: Export the struct
EntryToPath
. Maps an iterator over items of typeDirEntry
orResult<DirEntry>
into one over items of typePathBuf
andResult<PathBuf>
respectively. - only_extensions: Export the struct
AllowExtensions
. Only will let through entries which extensions are in a list of "allowed" ones. - path_reroot: Export the struct
PathReRoot
. Given an iterator over items of type PathBuf rewrite the root of those that contains a given prefix, by using another one given as a replacement. - rdr: Export the struct
ReadDirRecursive
. Iterator similar to the standardfs::ReadDir
but recursive. - result_filter: Export the struct
ResultFilter
. It maps an iterator over items of typeResult<T>
into one over items of typeT
by discardingErr
variants.
There is also the ext module which expose other modules that implement traits that extends pre existing types with new functionality / methods.
cargo doc --lib --open