Skip to main content

for_each_input

Function for_each_input 

Source
pub fn for_each_input(
    path: &Path,
    f: impl FnMut(&mut dyn Read) -> Result<(), GeocoderError>,
) -> Result<(), GeocoderError>
Expand description

Run f on each data file of path, decompressed: the file itself, or every entry of a .zip; .gz files are gunzipped.