pub trait CStr {
// Required method
fn to_vec(&self) -> Vec<u8>;
}Expand description
A helper trait to convert Rust strings into null-terminated C strings.
This trait is implemented for &str to simplify the creation of CStr values
for use with Windows APIs.