Function from_c

Source
pub fn from_c(string: *const i8) -> Option<String>
Expand description

Converts a *const i8 into a String, if possible

Returns Some if the pointer isn’t null and points to a valid, non-empty string and returns None otherwise.