MCPcopy 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_distanceFunction · 0.45
edit_distance2Function · 0.45
encode_to_base58Method · 0.45
decode_from_base58Method · 0.45
get_indexMethod · 0.45
insertMethod · 0.45
is_fullMethod · 0.45
remove_from_listMethod · 0.45
ensure_roomMethod · 0.45
add_blockMethod · 0.45
add_blockMethod · 0.45
merkle_hash_strMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected