MCPcopy Create free account
hub / github.com/PerroEngine/Perro / borrow

Method borrow

perro_source/api_modules/perro_resource_api/src/res_path.rs:195–197  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

193 let path = path.into();
194 validate(&path)?;
195 Ok(Self(Cow::Owned(path)))
196 }
197
198 pub fn as_res_path(&self) -> &ResPath {
199 // SAFETY: ResPathBuf constructors validate owned and borrowed storage.
200 unsafe { ResPath::new_unchecked_borrowed(&self.0) }

Callers 6

to_variantMethod · 0.80
current_overridesFunction · 0.80
signal_connect_manyMethod · 0.80
resolve_pathFunction · 0.80

Calls 1

as_res_pathMethod · 0.80

Tested by

no test coverage detected