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

Method deref

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

Source from the content-addressed store, hash-verified

187 pub const fn new(path: &'static str) -> Self {
188 validate_const(path);
189 Self(Cow::Borrowed(path))
190 }
191
192 pub fn try_new(path: impl Into<String>) -> Result<Self, ResPathError> {
193 let path = path.into();
194 validate(&path)?;

Callers

nothing calls this directly

Calls 1

as_res_pathMethod · 0.80

Tested by

no test coverage detected