MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / new

Method new

ch_04/ch_04-s4.1.2/src/main.rs:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24impl Store {
25 fn new() -> Self {
26 Store {
27 questions: Self::init(),
28 }
29 }
30
31 fn init() -> HashMap<QuestionId, Question> {
32 let file = include_str!("../question.json");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected