(&self)
| 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 | /// |
no outgoing calls
no test coverage detected