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

Method as_ref

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

Source from the content-addressed store, hash-verified

142 match self.kind() {
143 ResPathKind::Res => &self.0["res://".len()..],
144 ResPathKind::User => &self.0["user://".len()..],
145 ResPathKind::Dlc => {
146 let rest = &self.0["dlc://".len()..];
147 rest.split_once('/').map_or("", |(_, body)| body)
148 }
149 }

Callers 15

poll_acceptsMethod · 0.45
poll_udp_packetsMethod · 0.45
http_workerFunction · 0.45
connect_with_optionsMethod · 0.45
map_websocket_messageFunction · 0.45
localeMethod · 0.45
getMethod · 0.45
get_for_localeMethod · 0.45
loadMethod · 0.45
preloadMethod · 0.45
drop_preloadedMethod · 0.45

Calls 2

as_res_pathMethod · 0.80
as_strMethod · 0.45