pub trait SafeStringConversion {
// Required method
fn to_cstring_safe(&self) -> Result<CString, ImGuiError>;
}Expand description
Helper trait for safe string conversion
Required Methods§
Sourcefn to_cstring_safe(&self) -> Result<CString, ImGuiError>
fn to_cstring_safe(&self) -> Result<CString, ImGuiError>
Convert to CString safely, returning an error if the string contains null bytes