Module small_cstr

Source

Structs§

SmallCString
Similar to std::ffi::CString, but avoids heap allocating if the string is small enough. Also guarantees it’s input is UTF-8 – used for cases where we need to pass a NUL-terminated string to SQLite, and we have a &str.