(filename: &PathBuf)
| 185 | |
| 186 | impl SynonymIndex { |
| 187 | pub fn new(filename: &PathBuf) -> Self { |
| 188 | Self::make( |
| 189 | filename.to_owned(), |
| 190 | SynonymIndexMap { |
| 191 | api_version: API_VERSION.to_owned(), |
| 192 | kind: "SynonymIndexMap".to_owned(), |
| 193 | synonyms: BTreeMap::new(), |
| 194 | }, |
| 195 | ) |
| 196 | } |
| 197 | |
| 198 | pub fn load(filename: &PathBuf, view: &core::View) -> Result<Self> { |
| 199 | let index = if view.blob_exists(filename)? { |