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

Method try_from

backend/src/git/ext.rs:200–206  ·  view source on GitHub ↗
((repo_id, object): (RepoId, &RepoObject))

Source from the content-addressed store, hash-verified

198 type Error = Error;
199
200 fn try_from((repo_id, object): (RepoId, &RepoObject)) -> Result<Self> {
201 let repo_topic: RepoTopic = object.try_into()?;
202 Ok(RepoTopicWrapper {
203 repo_id,
204 repo_topic,
205 })
206 }
207}
208
209impl RepoTopicWrapper {

Callers

nothing calls this directly

Calls 2

RepoClass · 0.85
try_intoMethod · 0.45

Tested by

no test coverage detected