IntoCString

Trait IntoCString 

Source
pub trait IntoCString {
    // Required method
    fn into_c_string(self) -> CString;
}
Expand description

Infallible conversion to a C string.

Required Methods§

Source

fn into_c_string(self) -> CString

Converts this value to a C string.

Implementations on Foreign Types§

Source§

impl IntoCString for &str

Source§

impl IntoCString for &CStr

Source§

impl IntoCString for CString

Source§

impl IntoCString for String

Implementors§