MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / contains

Method contains

code/chapter09/lru.rs:92–94  ·  view source on GitHub ↗
(&mut self, key: &K)

Source from the content-addressed store, hash-verified

90 }
91
92 fn contains(&mut self, key: &K) -> bool {
93 self.map.contains_key(key)
94 }
95
96 fn is_empty(&self) -> bool {
97 self.map.is_empty()

Callers 5

rec_mc2Function · 0.45
rec_mc1Function · 0.45
getMethod · 0.45
get_mutMethod · 0.45
try_insertFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected