Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ Cache
Class
Cache
chapter 2/code.rs:141–144 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
139
let mru = CacheType::MRU;
140
141
struct Cache{
142
level: String,
143
type: CacheType
144
}
145
146
// Control Flow
147
fn main() {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected