Struct std::ffi::IntoStringError 1.7.0[−][src]
pub struct IntoStringError { /* fields omitted */ }Expand description
An error indicating invalid UTF-8 when converting a CString into a String.
CString is just a wrapper over a buffer of bytes with a nul terminator;
CString::into_string performs UTF-8 validation on those bytes and may
return this error.
This struct is created by CString::into_string(). See
its documentation for more.
Implementations
Consumes this error, returning original CString which generated the
error.
Access the underlying UTF-8 error that was the cause of this error.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for IntoStringError
impl Send for IntoStringError
impl Sync for IntoStringError
impl Unpin for IntoStringError
impl UnwindSafe for IntoStringError
Blanket Implementations
Mutably borrows from an owned value. Read more