Struct std::ffi::IntoStringError [] [src]

pub struct IntoStringError {
    // some fields omitted
}
1.7.0

An error returned from CString::into_string to indicate that a UTF-8 error was encountered during the conversion.

Methods

impl IntoStringError

fn into_cstring(self) -> CString

Consumes this error, returning original CString which generated the error.

fn utf8_error(&self) -> Utf8Error

Access the underlying UTF-8 error that was the cause of this error.

Trait Implementations

impl Error for IntoStringError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for IntoStringError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for IntoStringError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for IntoStringError

fn eq(&self, __arg_0: &IntoStringError) -> bool

fn ne(&self, __arg_0: &IntoStringError) -> bool

impl Clone for IntoStringError

fn clone(&self) -> IntoStringError

fn clone_from(&mut self, source: &Self)1.0.0