Get the key that will be assigned to the next pushed value.
(&self)
| 132 | |
| 133 | /// Get the key that will be assigned to the next pushed value. |
| 134 | pub fn next_key(&self) -> K { |
| 135 | K::new(self.elems.len()) |
| 136 | } |
| 137 | |
| 138 | /// Append `v` to the mapping, assigning a new key which is returned. |
| 139 | pub fn push(&mut self, v: V) -> K { |