pub trait AsCStr {
// Required method
fn as_cstr(&self) -> &CStr;
}Expand description
Conversion to a C-style string.
If using the derive macro, this will be a cheap conversion.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".