Tracking issue for HashMap::raw_entry · Issue #56167 · rust-lang/rust (original) (raw)
Added in #54043.
As of 6ecad33 / 2019-01-09, this feature covers:
impl<K, V, S> HashMap<K, V, S> where K: Eq + Hash, S: BuildHasher { pub fn raw_entry(&self) -> RawEntryBuilder<K, V, S> {…} pub fn raw_entry_mut(&mut self) -> RawEntryBuilderMut<K, V, S> {…} }
pub struct RawEntryBuilder<'a, K: 'a, V: 'a, S: 'a> {…} // Methods return Option<(&'a K, &'a V)> pub struct RawEntryBuilderMut<'a, K: 'a, V: 'a, S: 'a> {…} // Methods return RawEntryMut<'a, K, V, S> pub enum RawEntryMut<'a, K: 'a, V: 'a, S: 'a> { Occupied(RawOccupiedEntryMut<'a, K, V>), Vacant(RawVacantEntryMut<'a, K, V, S>), } pub struct RawOccupiedEntryMut<'a, K: 'a, V: 'a> {…} pub struct RawVacantEntryMut<'a, K: 'a, V: 'a, S: 'a> {…}
… as well as Debug
impls for each 5 new types, and their inherent methods.