pub fn as_c_str<'a>(value: &'a String) -> &'a CStr
Expand description

Convert null-terminated String to CStr.

You can use trait WithNull.