Return an iterator over the keys (indexes into the dictionary)
(&self)
| 397 | |
| 398 | /// Return an iterator over the keys (indexes into the dictionary) |
| 399 | pub fn keys_iter(&self) -> impl Iterator<Item = Option<usize>> + '_ { |
| 400 | self.keys.iter().map(|key| key.map(|k| k.as_usize())) |
| 401 | } |
| 402 | |
| 403 | /// Return the value of `keys` (the dictionary key) at index `i`, |
| 404 | /// cast to `usize`, `None` if the value at `i` is `NULL`. |