pub fn iterate_dir<F>(
        &mut self,
        volume: &Volume,
        dir: &Directory,
        func: F,
    ) -> Result<(), Error<D::Error>>
    where
        F: FnMut(&DirEntry),
    {
        match &volume.volume_type {
            VolumeType::Fat16(fat) => fat.iterate_dir(self, dir, func),
            VolumeType::Fat32(fat) => fat.iterate_dir(self, dir, func),
        }
    }
/// Call a callback function for each directory entry in a directory.
Call a callback function for each directory entry in a directory.
Call a callback function for each directory entry in a directory .
pub fn iterate_dir<F>(
        &mut self,
        volume: &Volume,
        dir: &Directory,
        func: F,
    ) -> Result<(), Error<D::Error>>
    where
        F: FnMut(&DirEntry),
    {
        match &volume.volume_type {
            VolumeType::Fat16(fat) => fat.iterate_dir(self, dir, func),
            VolumeType::Fat32(fat) => fat.iterate_dir(self, dir, func),
        }
    }
pub fn iterate_dir < F > ( & mut self , volume : & Volume , dir : & Directory , func : F , ) -> Result < ( ) , Error < D :: Error > > where F : FnMut ( & DirEntry ) , { match & volume . volume_type { VolumeType :: Fat16 ( fat ) => fat . iterate_dir ( self , dir , func ) , VolumeType :: Fat32 ( fat ) => fat . iterate_dir ( self , dir , func ) , } }
Call a callback function for each directory entry in a directory.
Call a callback function for each directory entry in a directory .
&mut self
volume
&Volume
dir
&Directory
func
F
&mut self
volume
&Volume
dir
&Directory
func
F