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