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

Method get_mut

src/entity/primary_map.rs:72–74  ·  view source on GitHub ↗

Get the element at `k` if it exists, mutable version.

(&mut self, k: K)

Source from the content-addressed store, hash-verified

70
71 /// Get the element at `k` if it exists, mutable version.
72 pub fn get_mut(&mut self, k: K) -> Option<&mut V> {
73 self.elems.get_mut(k.index())
74 }
75
76 /// Is this map completely empty?
77 #[inline]

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected