Checks whether the given key exists in the DB.
(&self, key: Self::Key)
| 188 | |
| 189 | /// Checks whether the given key exists in the DB. |
| 190 | fn contains_key(&self, key: Self::Key) -> bool { |
| 191 | self.get(key).is_some() // TODO: better impl |
| 192 | } |
| 193 | |
| 194 | /// Iterate over all key-value pairs in the database. |
| 195 | /// |