Trait git2::IntoCString

source ·
pub trait IntoCString {
    // Required method
    fn into_c_string(self) -> Result<CString, Error>;
}
Expand description

A class of types that can be converted to C strings.

These types are represented internally as byte slices and it is quite rare for them to contain an interior 0 byte.

Required Methods§

source

fn into_c_string(self) -> Result<CString, Error>

Consume this container, converting it into a CString

Implementations on Foreign Types§

source§

impl IntoCString for CString

source§

impl IntoCString for String

source§

impl IntoCString for Vec<u8>

source§

impl IntoCString for OsString

source§

impl IntoCString for PathBuf

source§

impl<'a> IntoCString for &'a str

source§

impl<'a> IntoCString for &'a OsStr

source§

impl<'a> IntoCString for &'a Path

source§

impl<'a> IntoCString for &'a [u8]

source§

impl<'a, T: IntoCString + Clone> IntoCString for &'a T

Implementors§