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

pub struct IntoStringError {
    // some fields omitted
}
Unstable (cstring_into #29157)

: recently added

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

Unstable (cstring_into #29157)

: recently added

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

fn utf8_error(&self) -> Utf8Error

Unstable (cstring_into #29157)

: recently added

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)