Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ len
Method
len
code/chapter09/lru.rs:104–106 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
102
}
103
104
fn len(&self) -> usize {
105
self.map.len()
106
}
107
108
// 获取某个 key 的值,移除原来位置的值并在头部加入
109
fn access(&mut self, key: &K) {
Callers
15
edit_distance
Function · 0.45
edit_distance2
Function · 0.45
encode_to_base58
Method · 0.45
decode_from_base58
Method · 0.45
get_index
Method · 0.45
insert
Method · 0.45
is_full
Method · 0.45
remove_from_list
Method · 0.45
ensure_room
Method · 0.45
add_block
Method · 0.45
add_block
Method · 0.45
merkle_hash_str
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected