MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / remove

Method remove

src/entity/sparse.rs:202–207  ·  view source on GitHub ↗
(&mut self, key: K)

Source from the content-addressed store, hash-verified

200 #[inline]
201 #[track_caller]
202 pub fn remove(&mut self, key: K) -> Option<V> {
203 match self.entry(key) {
204 Entry::Occupied(entry) => Some(entry.remove()),
205 Entry::Vacant(_) => None,
206 }
207 }
208
209 /// Remove the last value from the map.
210 #[inline]

Callers

nothing calls this directly

Calls 4

entryMethod · 0.80
unwrapMethod · 0.80
popMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected