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

Method from

backend/src/git/types.rs:16–22  ·  view source on GitHub ↗
(kind: &str)

Source from the content-addressed store, hash-verified

14
15impl Kind {
16 pub fn from(kind: &str) -> Result<Self> {
17 match kind {
18 "Link" => Ok(Self::Link),
19 "Topic" => Ok(Self::Topic),
20 _ => Err(Error::Repo(format!("unknown kind: {kind}"))),
21 }
22 }
23}
24
25impl std::cmp::Ord for Kind {

Callers

nothing calls this directly

Calls 1

RepoClass · 0.85

Tested by

no test coverage detected