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

Interface Dictionary

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 1

mainSource Code/19-29.rs

Calls

no outgoing calls

Tested by

no test coverage detected