[][src]Function opaque_pointer::ref_str

#[must_use]pub unsafe fn ref_str<'a>(string: *const c_char) -> &'a str

Reference to a C string.

Safety

The pointer must be a valid reference to that value with that type.

Panics

This could panic if the C string is not a valid UTF-8 string.