Append `v` to the mapping, assigning a new key which is returned.
(&mut self, v: V)
| 137 | |
| 138 | /// Append `v` to the mapping, assigning a new key which is returned. |
| 139 | pub fn push(&mut self, v: V) -> K { |
| 140 | let k = self.next_key(); |
| 141 | self.elems.push(v); |
| 142 | k |
| 143 | } |
| 144 | |
| 145 | /// Returns the last element that was inserted in the map. |
| 146 | pub fn last(&self) -> Option<(K, &V)> { |