pub enum CharsetConvertError {
Decode(CharsetDecodeError),
Encode(CharsetEncodeError),
}Expand description
Error reported while converting between two charsets.
Variants§
Decode(CharsetDecodeError)
Source decoding failed.
Encode(CharsetEncodeError)
Target encoding failed.
Trait Implementations§
Source§impl Clone for CharsetConvertError
impl Clone for CharsetConvertError
Source§fn clone(&self) -> CharsetConvertError
fn clone(&self) -> CharsetConvertError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CharsetConvertError
impl Debug for CharsetConvertError
Source§impl Display for CharsetConvertError
impl Display for CharsetConvertError
Source§impl Error for CharsetConvertError
impl Error for CharsetConvertError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CharsetDecodeError> for CharsetConvertError
impl From<CharsetDecodeError> for CharsetConvertError
Source§fn from(source: CharsetDecodeError) -> Self
fn from(source: CharsetDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CharsetEncodeError> for CharsetConvertError
impl From<CharsetEncodeError> for CharsetConvertError
Source§fn from(source: CharsetEncodeError) -> Self
fn from(source: CharsetEncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CharsetConvertError
impl PartialEq for CharsetConvertError
Source§fn eq(&self, other: &CharsetConvertError) -> bool
fn eq(&self, other: &CharsetConvertError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CharsetConvertError
impl Eq for CharsetConvertError
impl StructuralPartialEq for CharsetConvertError
Auto Trait Implementations§
impl Freeze for CharsetConvertError
impl RefUnwindSafe for CharsetConvertError
impl Send for CharsetConvertError
impl Sync for CharsetConvertError
impl Unpin for CharsetConvertError
impl UnsafeUnpin for CharsetConvertError
impl UnwindSafe for CharsetConvertError
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