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

Method try_from

backend/src/graphql/git.rs:48–53  ·  view source on GitHub ↗
(value: git::Object)

Source from the content-addressed store, hash-verified

46 type Error = Error;
47
48 fn try_from(value: git::Object) -> Result<Self> {
49 match value {
50 git::Object::Link(link) => Ok(link.into()),
51 _ => Err(Error::Repo("not an object".into())),
52 }
53 }
54}
55
56impl TryFrom<git::Object> for Topic {

Callers

nothing calls this directly

Calls 7

RepoClass · 0.85
from_strFunction · 0.85
link_countMethod · 0.80
topic_countMethod · 0.80
TopicClass · 0.70
LinkClass · 0.70
try_intoMethod · 0.45

Tested by

no test coverage detected