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

Method body

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

Source from the content-addressed store, hash-verified

117 } else if self.0.starts_with("dlc://") {
118 ResPathKind::Dlc
119 } else {
120 ResPathKind::User
121 }
122 }
123
124 pub fn as_str(&self) -> &str {
125 &self.0
126 }
127
128 pub fn to_res_path_buf(&self) -> ResPathBuf {
129 ResPathBuf(Cow::Owned(self.0.to_owned()))
130 }
131

Callers

nothing calls this directly

Calls 2

kindMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected