[][src]Function opaque_pointer::ref_str

pub fn ref_str<'a>(string: *const c_char) -> &'a str

Reference to a C string.

Panics

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