Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ clear
Method
clear
chapter 5/memory_pool.rs:87–90 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
85
}
86
87
pub fn clear(&self) {
88
let mut inner = self.inner.write().unwrap();
89
inner.clear();
90
}
91
92
pub fn len(&self) -> usize {
93
self.inner.read().unwrap().len()
Callers
2
reindex
Method · 0.45
reindex
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected