Function read_csv_id_file

Source
fn read_csv_id_file<T, ID: IDLike>(file_path: &Path) -> Result<IndexMap<ID, T>>
where T: HasID<ID> + DeserializeOwned,
Expand description

Read a CSV file of items with IDs.

As this function is only ever used for top-level CSV files (i.e. the ones which actually define the IDs for a given type), we use an ordered map to maintain the order in the input files.