diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-11 18:59:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-11 18:59:46 +0200 |
| commit | cadb37a8c7811773d2831b95f7554a36a52f53b0 (patch) | |
| tree | ed3f0628a010ac7152af0ab2e68d71dad48e1c53 /library/std/src/sys/unix/fs.rs | |
| parent | 6d58ff7fe6d81a6fd7b8a09f720617f1e2c62819 (diff) | |
| parent | 2c72ea7748d4ed68178afa059a0853c3e97731e6 (diff) | |
| download | rust-cadb37a8c7811773d2831b95f7554a36a52f53b0.tar.gz rust-cadb37a8c7811773d2831b95f7554a36a52f53b0.zip | |
Rollup merge of #101727 - est31:stabilize_map_first_last, r=m-ou-se
Stabilize map_first_last
Stabilizes the following functions:
```Rust
impl<T> BTreeSet<T> {
pub fn first(&self) -> Option<&T> where T: Ord;
pub fn last(&self) -> Option<&T> where T: Ord;
pub fn pop_first(&mut self) -> Option<T> where T: Ord;
pub fn pop_last(&mut self) -> Option<T> where T: Ord;
}
impl<K, V> BTreeMap<K, V> {
pub fn first_key_value(&self) -> Option<(&K, &V)> where K: Ord;
pub fn last_key_value(&self) -> Option<(&K, &V)> where K: Ord;
pub fn first_entry(&mut self) -> Option<OccupiedEntry<'_, K, V>> where K: Ord;
pub fn last_entry(&mut self) -> Option<OccupiedEntry<'_, K, V>> where K: Ord;
pub fn pop_first(&mut self) -> Option<(K, V)> where K: Ord;
pub fn pop_last(&mut self) -> Option<(K, V)> where K: Ord;
}
```
Closes #62924
~~Blocked on the [FCP](https://github.com/rust-lang/rust/issues/62924#issuecomment-1179489929) finishing.~~ Edit: It finished!
Diffstat (limited to 'library/std/src/sys/unix/fs.rs')
0 files changed, 0 insertions, 0 deletions
