Expand description
Code to support calling into C APIs which consume strings.
Functions§
- from_
cstring - Creates an owned
String
from a givenCString
. - from_
cstring_ ⚠raw - Creates an owned
String
from a given raw C string pointer. - with_
cstring - Calls the given function with a lifetime-bound
CString
constructed from the givenString
.