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

Method from

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

Source from the content-addressed store, hash-verified

35
36impl From<git::Object> for SearchMatch {
37 fn from(value: git::Object) -> Self {
38 match value {
39 git::Object::Link(link) => SearchMatch::Link(Link(link)),
40 git::Object::Topic(topic) => SearchMatch::Topic(Topic(topic)),
41 }
42 }
43}
44
45impl TryFrom<git::Object> for Link {

Callers

nothing calls this directly

Calls 4

LinkClass · 0.70
TopicClass · 0.70
SynonymClass · 0.70
iterMethod · 0.45

Tested by

no test coverage detected