MCPcopy Create free account
hub / github.com/emwalker/digraph / new

Method new

backend/src/bin/export.rs:172–179  ·  view source on GitHub ↗
(repo_id: RepoId, repo_topic: RepoTopic)

Source from the content-addressed store, hash-verified

170
171impl RepoTopics {
172 fn new(repo_id: RepoId, repo_topic: RepoTopic) -> Self {
173 let mut references: HashMap<RepoId, RepoTopic> = HashMap::new();
174 references.insert(repo_id, repo_topic.clone());
175 Self {
176 repo_topic,
177 references,
178 }
179 }
180
181 fn get_mut(&mut self, repo_id: RepoId) -> &mut RepoTopic {
182 let topics = &mut self.references;

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected