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

Method as_str

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

Source from the content-addressed store, hash-verified

100 /// Caller must pass a valid resource path.
101 pub const unsafe fn new_unchecked(path: &'static str) -> &'static Self {
102 // SAFETY: ResPath is repr(transparent) over str; caller upholds path validity.
103 unsafe { &*(path as *const str as *const Self) }
104 }
105
106 /// # Safety
107 ///

Callers 10

fmtMethod · 0.45
as_refMethod · 0.45
as_res_path_strMethod · 0.45
fromMethod · 0.45
from_variantMethod · 0.45
to_variantMethod · 0.45
into_scene_pathMethod · 0.45
into_script_memberMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected