We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35b36eb + 366ab78 commit 0af3c46Copy full SHA for 0af3c46
src/map.rs
@@ -636,6 +636,8 @@ where
636
637
/// Remove the last key-value pair
638
///
639
+ /// This preserves the order of the remaining elements.
640
+ ///
641
/// Computes in **O(1)** time (average).
642
pub fn pop(&mut self) -> Option<(K, V)> {
643
self.core.pop()
src/set.rs
@@ -532,6 +532,8 @@ where
532
533
/// Remove the last value
534
535
536
537
538
pub fn pop(&mut self) -> Option<T> {
539
self.map.pop().map(|(x, ())| x)
0 commit comments