MCPcopy Create free account
hub / github.com/Freaky/Compactor / open

Method open

hashfilter/src/lib.rs:20–25  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

18
19impl HashFilter {
20 pub fn open<P: AsRef<Path>>(path: P) -> Self {
21 Self {
22 path: Some(path.as_ref().to_owned()),
23 ..Self::default()
24 }
25 }
26
27 pub fn set_backing<P: AsRef<Path>>(&mut self, path: P) {
28 self.path = Some(path.as_ref().to_owned());

Callers 2

handle_fileFunction · 0.80
saveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected