Trait IntoCStr

Source
pub trait IntoCStr {
    type Result: Deref<Target = CStr>;

    // Required method
    fn to_cstr(self) -> Self::Result;
}

Required Associated Types§

Source

type Result: Deref<Target = CStr>

Required Methods§

Source

fn to_cstr(self) -> Self::Result

Implementations on Foreign Types§

Source§

impl IntoCStr for &str

Source§

impl IntoCStr for &String

Source§

impl IntoCStr for &CStr

Source§

type Result = &CStr

Source§

fn to_cstr(self) -> Self::Result

Source§

impl IntoCStr for &Path

Source§

impl IntoCStr for Cow<'_, str>

Source§

impl IntoCStr for CString

Source§

impl IntoCStr for String

Source§

impl IntoCStr for PathBuf

Source§

impl<'a> IntoCStr for &'a Cow<'a, str>

Implementors§