IntoStringError in alloc::ffi - Rust
source link: https://doc.rust-lang.org/stable/alloc/ffi/struct.IntoStringError.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
IntoStringError
pub struct IntoStringError { /* private fields */ }
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK