Remove BoxedSlice's next_key() function, which is unneeded.
`BoxedSlice` does not support appending elements, so it isn't useful to look up the next key.
This commit is contained in:
@@ -83,11 +83,6 @@ where
|
|||||||
IterMut::new(self.elems.iter_mut())
|
IterMut::new(self.elems.iter_mut())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the key that will be assigned to the next pushed value.
|
|
||||||
pub fn next_key(&self) -> K {
|
|
||||||
K::new(self.elems.len())
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the last element that was inserted in the map.
|
/// Returns the last element that was inserted in the map.
|
||||||
pub fn last(&self) -> Option<&V> {
|
pub fn last(&self) -> Option<&V> {
|
||||||
self.elems.last()
|
self.elems.last()
|
||||||
|
|||||||
Reference in New Issue
Block a user