MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / Dictionary

Interface Dictionary

Source Code/19-28.rs:4–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2None, Some(“Jane”)*/
3fn main() {
4 trait Dictionary<Key> {
5 fn get(&self, key: Key) -> Option<String>;
6 }
7 struct Record {
8 id: u32,
9 name: String,

Callers

nothing calls this directly

Implementers 1

mainSource Code/19-28.rs

Calls

no outgoing calls

Tested by

no test coverage detected