Trait git2::IntoCString [−][src]
pub trait IntoCString { fn into_c_string(self) -> Result<CString, Error>; }
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
fn into_c_string(self) -> Result<CString, Error>
Consume this container, converting it into a CString
Implementations on Foreign Types
impl<'a, T: IntoCString + Clone> IntoCString for &'a T
[src]
impl<'a, T: IntoCString + Clone> IntoCString for &'a T
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl<'a> IntoCString for &'a str
[src]
impl<'a> IntoCString for &'a str
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl IntoCString for String
[src]
impl IntoCString for String
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl IntoCString for CString
[src]
impl IntoCString for CString
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl<'a> IntoCString for &'a Path
[src]
impl<'a> IntoCString for &'a Path
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl IntoCString for PathBuf
[src]
impl IntoCString for PathBuf
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl<'a> IntoCString for &'a OsStr
[src]
impl<'a> IntoCString for &'a OsStr
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl IntoCString for OsString
[src]
impl IntoCString for OsString
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl<'a> IntoCString for &'a [u8]
[src]
impl<'a> IntoCString for &'a [u8]
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>
impl IntoCString for Vec<u8>
[src]
impl IntoCString for Vec<u8>
fn into_c_string(self) -> Result<CString, Error>
[src]
fn into_c_string(self) -> Result<CString, Error>