Expand description
Small FFI utilities shared by the higher-level modules.
Structs§
- COptions
- A pinned, owned array of
cpdb_option_twith backingCStringstorage.
Functions§
- cstr_
to_ ⚠string - Converts a borrowed C string into an owned
String. - cstr_
to_ ⚠string_ and_ g_ free - Same as
cstr_to_stringbut frees the underlying buffer withg_free. - to_
c_ options - Converts a slice of
(name, value)pairs into aCOptionssuitable for passing to cpdb-libs.