Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_mc2
Function · 0.45
rec_mc1
Function · 0.45
get
Method · 0.45
get_mut
Method · 0.45
try_insert
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected