#[non_exhaustive]pub enum ConvertError {
NoConversion,
IllegalSequence,
Failed,
PartialInput,
BadUri,
NotAbsolutePath,
NoMemory,
EmbeddedNul,
}
Expand description
Error codes returned by character set conversion routines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoConversion
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.
Failed
Conversion failed for some reason.
PartialInput
Partial character sequence at end of input.
BadUri
URI is invalid.
NotAbsolutePath
Pathname is not an absolute path.
NoMemory
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
Trait Implementations§
Source§impl Clone for ConvertError
impl Clone for ConvertError
Source§fn clone(&self) -> ConvertError
fn clone(&self) -> ConvertError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl ErrorDomain for ConvertError
impl ErrorDomain for ConvertError
Source§impl Hash for ConvertError
impl Hash for ConvertError
Source§impl Ord for ConvertError
impl Ord for ConvertError
Source§fn cmp(&self, other: &ConvertError) -> Ordering
fn cmp(&self, other: &ConvertError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConvertError
impl PartialEq for ConvertError
Source§impl PartialOrd for ConvertError
impl PartialOrd for ConvertError
impl Copy for ConvertError
impl Eq for ConvertError
impl StructuralPartialEq for ConvertError
Auto Trait Implementations§
impl Freeze for ConvertError
impl RefUnwindSafe for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnwindSafe for ConvertError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)