Skip to main content

to_c_options

Function to_c_options 

Source
pub fn to_c_options(pairs: &[(&str, &str)]) -> Result<COptions>
Expand description

Converts a slice of (name, value) pairs into a COptions suitable for passing to cpdb-libs.

The returned COptions owns its backing CString storage, so the raw pointers embedded in each cpdb_option_t remain valid for the COptions lifetime.