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

Method init

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

Source from the content-addressed store, hash-verified

29 }
30
31 fn init() -> HashMap<QuestionId, Question> {
32 let file = include_str!("../question.json");
33 serde_json::from_str(file).expect("can't read questions.json")
34 }
35
36
37 fn add_question(mut self, question: Question) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected