stabilize hash_map_remove_entry
feature
This commit is contained in:
parent
b84baf2378
commit
fd042eee00
1 changed files with 1 additions and 2 deletions
|
@ -1379,7 +1379,6 @@ impl<K, V, S> HashMap<K, V, S>
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(hash_map_remove_entry)]
|
|
||||||
/// use std::collections::HashMap;
|
/// use std::collections::HashMap;
|
||||||
///
|
///
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
|
@ -1389,7 +1388,7 @@ impl<K, V, S> HashMap<K, V, S>
|
||||||
/// assert_eq!(map.remove(&1), None);
|
/// assert_eq!(map.remove(&1), None);
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "hash_map_remove_entry", issue = "46344")]
|
#[stable(feature = "hash_map_remove_entry", since = "1.27.0")]
|
||||||
pub fn remove_entry<Q: ?Sized>(&mut self, k: &Q) -> Option<(K, V)>
|
pub fn remove_entry<Q: ?Sized>(&mut self, k: &Q) -> Option<(K, V)>
|
||||||
where K: Borrow<Q>,
|
where K: Borrow<Q>,
|
||||||
Q: Hash + Eq
|
Q: Hash + Eq
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue