[−][src]Function alass::from_cstring
pub fn from_cstring(s: *const c_char) -> Option<String>
Copies the contents of a char buffer into an owned String
instance. Will return None
if the pointer is null
, or if
the C string is not a valid UTF-8 sequence.