Returns the list of records from the repository.
(&self)
| 78 | { |
| 79 | /// Returns the list of records from the repository. |
| 80 | fn list(&self) -> Vec<Value> { |
| 81 | let mut entries = Vec::with_capacity(self.len()); |
| 82 | |
| 83 | Self::with_db(|db| db.iter().for_each(|(_, entry)| entries.push(entry))); |
| 84 | |
| 85 | entries |
| 86 | } |
| 87 | |
| 88 | /// Returns whether a record exists in the repository. |
| 89 | fn exists(&self, key: &Key) -> bool { |
nothing calls this directly
no test coverage detected