MCPcopy Index your code
hub / github.com/emwalker/digraph / get_mut

Method get_mut

backend/src/bin/export.rs:181–198  ·  view source on GitHub ↗
(&mut self, repo_id: RepoId)

Source from the content-addressed store, hash-verified

179 }
180
181 fn get_mut(&mut self, repo_id: RepoId) -> &mut RepoTopic {
182 let topics = &mut self.references;
183
184 topics.entry(repo_id).or_insert_with(|| {
185 let id = self.repo_topic.topic_id().to_owned();
186
187 RepoTopic {
188 api_version: API_VERSION.to_string(),
189 metadata: RepoTopicMetadata {
190 added: self.repo_topic.added(),
191 id,
192 details: None,
193 },
194 parent_topics: BTreeSet::new(),
195 children: BTreeSet::new(),
196 }
197 })
198 }
199}
200
201fn persist_topic(

Callers 3

removeMethod · 0.80
persist_topicsFunction · 0.80
persist_linksFunction · 0.80

Calls 3

topic_idMethod · 0.45
addedMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected