load_index

Function load_index 

Source
pub fn load_index<T: for<'de> Deserialize<'de>, P: AsRef<Path>>(
    path: P,
) -> Result<T>
Expand description

Load an index from a JSON file

The index type must implement Deserialize. Specify the type explicitly:

let index: HnswIndex = load_index("path/to/index.json")?;