pub trait TryIntoAsCStr<C = i8> {
    type Target: AsCStr<C>;
    fn try_into(self) -> Result<Self::Target, InteriorNulError>;
}
Expand description

Converts self (str/String/CStr/CString) into something that implements AsCStr

Associated Types

The temporary type that can be treated as a C-string.

Required methods

Attempt to convert to Self::Target. May fail if self contains \0s.

Implementations on Foreign Types

Implementors