Function core::str::raw::c_str_to_static_sliceDeprecated
[-]
[+]
[src]
pub unsafe fn c_str_to_static_slice(s: *const i8) -> &'static str
Form a slice from a C string. Unsafe because the caller must ensure the C string has the static lifetime, or else the return value may be invalidated later.