Function rscache::util::load_indices [−][src]
pub fn load_indices<P: AsRef<Path>>(path: P) -> Result<HashMap<u8, Index>>
Expand description
Loads all indices present in the cache folder.
The u8
in HashMap<u8, Index>
represents the id of the index.
It loops through the directory searching for the reference table and
every index that is compatible.
Errors
Can return multiple errors:
- Reference table not found.
- Index failed to parse.
- Index couldn’t be opened.