pub fn collect_dir<C: Default + Extend<D>, D: TryFrom<DirEntry, Error = Error>>(
    path: impl AsRef<Path>
) -> Result<C>
Expand description

Collect directories (like std::fs::read_dir, but only one io::Result to untangle, and allocates)