[src]

Function std::str::raw::c_str_to_static_slice

pub unsafe fn c_str_to_static_slice(s: *c_char) -> &'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.