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

Method get

src/entity/primary_map.rs:67–69  ·  view source on GitHub ↗

Get the element at `k` if it exists.

(&self, k: K)

Source from the content-addressed store, hash-verified

65
66 /// Get the element at `k` if it exists.
67 pub fn get(&self, k: K) -> Option<&V> {
68 self.elems.get(k.index())
69 }
70
71 /// Get the element at `k` if it exists, mutable version.
72 pub fn get_mut(&mut self, k: K) -> Option<&mut V> {

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected