pub fn load(path: &Path) -> Result<Option<Index>>Expand description
Load a snapshot, or return None when there is nothing usable at path.
Returns None — not an error — for a missing file, a foreign file, a version or
engine-fingerprint mismatch, and a truncated or corrupt file. Every one of those
means the same thing to a caller: there is no warm cache, so scan.