#[non_exhaustive]pub enum ConvertError {
NoConversion,
IllegalSequence,
Failed,
PartialInput,
BadUri,
NotAbsolutePath,
NoMemory,
EmbeddedNul,
}
Expand description
Error codes returned by character set conversion routines. Error codes returned by character set conversion routines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoConversion
Conversion between the requested character sets is not supported. Conversion between the requested character sets is not supported.
IllegalSequence
Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set. Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set.
Failed
Conversion failed for some reason. Conversion failed for some reason.
PartialInput
Partial character sequence at end of input. Partial character sequence at end of input.
BadUri
URI is invalid. URI is invalid.
NotAbsolutePath
Pathname is not an absolute path. Pathname is not an absolute path.
NoMemory
No memory available. Since: 2.40 No memory available. Since: 2.40
EmbeddedNul
An embedded NUL character is present in conversion output where a NUL-terminated string is expected. Since: 2.56 An embedded NUL character is present in conversion output where a NUL-terminated string is expected. Since: 2.56
Trait Implementations§
Source§impl Clone for ConvertError
impl Clone for ConvertError
Source§fn clone(&self) -> ConvertError
fn clone(&self) -> ConvertError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more