Function cosmogony::read_zones_from_file
source · pub fn read_zones_from_file(
input: impl AsRef<Path>
) -> Result<Box<dyn Iterator<Item = Result<Zone, Error>> + Send + Sync>, Error>
Expand description
Return an iterator on the zones if the input file is a jsonstream, the zones are streamed if the input file is a json, the whole cosmogony is loaded