MCPcopy Index your code
hub / github.com/HairlessVillager/minecommit / prefixed

Method prefixed

minecommit/src/handler/mod.rs:51–53  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

49
50impl<W: OdbWriter> PrefixedWriter<'_, W> {
51 fn prefixed(&self, key: &str) -> String {
52 format!("{}/{}", self.prefix, key)
53 }
54
55 fn strip<'a>(&self, key: &'a str) -> Result<&'a str> {
56 key.strip_prefix(&format!("{}/", self.prefix))

Callers 3

getMethod · 0.80
get_parMethod · 0.80
putMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected