IntoCStr

Trait IntoCStr 

Source
pub trait IntoCStr<'a> {
    // Required method
    fn into_c_str(self) -> NvResult<Cow<'a, CStr>>;
}
Expand description

Trait to keep public interface friendly (i.e. support rust types like &str) and at the same time allow using lower level types like CString & CStr.

Required Methods§

Source

fn into_c_str(self) -> NvResult<Cow<'a, CStr>>

Implementations on Foreign Types§

Source§

impl<'a> IntoCStr<'a> for &'a CStr

Source§

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

Source§

impl<'a> IntoCStr<'a> for CString

Source§

impl<'a> IntoCStr<'a> for String

Implementors§