MCPcopy Create free account
hub / github.com/bytesnake/vim-graphical-preview / path

Method path

src/content.rs:86–92  ·  view source on GitHub ↗
(&self, content: &str)

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn path(&self, content: &str) -> PathBuf {
87 let id = utils::hash(content);
88 match self {
89 ContentType::File => PathBuf::from(content),
90 _ => PathBuf::from(ART_PATH).join(id).with_extension("svg"),
91 }
92 }
93}
94
95#[derive(Clone)]

Callers 1

generateMethod · 0.80

Calls 1

hashFunction · 0.85

Tested by

no test coverage detected