Enum rc_zip::encoding::DecodingError
source · pub enum DecodingError {
Utf8Error(Utf8Error),
StringTooLarge,
EncodingError(&'static str),
}
Expand description
Errors encountered while converting text to UTF-8.
Variants§
Utf8Error(Utf8Error)
Text claimed to be UTF-8, but wasn’t (as far as we can tell).
StringTooLarge
Text is too large to be converted.
In practice, this happens if the text’s length is larger than usize::MAX, which seems unlikely.
EncodingError(&'static str)
Text is not valid in the given encoding.
Trait Implementations§
source§impl Debug for DecodingError
impl Debug for DecodingError
source§impl Display for DecodingError
impl Display for DecodingError
source§impl Error for DecodingError
impl Error for DecodingError
1.30.0 · 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<DecodingError> for Error
impl From<DecodingError> for Error
source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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