Enum c_utf8::Error [−][src]
pub enum Error { Nul, Utf8(Utf8Error), }
The error for converting types to CUtf8
.
Variants
Nul
An error indicating that the nul byte was not at the end.
Utf8(Utf8Error)
An error indicating that input bytes were not encoded as UTF-8.
Trait Implementations
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Utf8Error> for Error
[src]
impl From<Utf8Error> for Error
impl From<FromBytesWithNulError> for Error
[src]
impl From<FromBytesWithNulError> for Error
fn from(_: FromBytesWithNulError) -> Error
[src]
fn from(_: FromBytesWithNulError) -> Error
Performs the conversion.
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error