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
Implementors
impl<'a, T: IntoCString + Clone> IntoCString for &'a Timpl<'a> IntoCString for &'a strimpl IntoCString for Stringimpl IntoCString for CStringimpl<'a> IntoCString for &'a Pathimpl IntoCString for PathBufimpl<'a> IntoCString for &'a OsStrimpl IntoCString for OsStringimpl<'a> IntoCString for &'a [u8]impl IntoCString for Vec<u8>