pub(crate) enum TextDecodingError {
    Unrepresentable,
    InvalidKeywordSize,
    MissingNullSeparator,
    InflationError,
    OutOfDecompressionSpace,
    InvalidCompressionMethod,
    InvalidCompressionFlag,
    MissingCompressionFlag,
}Expand description
Text decoding error that is wrapped by the standard DecodingError type
Variants§
Unrepresentable
Unrepresentable characters in string
InvalidKeywordSize
Keyword longer than 79 bytes or empty
MissingNullSeparator
Missing null separator
InflationError
Compressed text cannot be uncompressed
OutOfDecompressionSpace
Needs more space to decompress
InvalidCompressionMethod
Using an unspecified value for the compression method
InvalidCompressionFlag
Using a byte that is not 0 or 255 as compression flag in iTXt chunk
MissingCompressionFlag
Missing the compression flag
Trait Implementations§
Source§impl Clone for TextDecodingError
 
impl Clone for TextDecodingError
Source§fn clone(&self) -> TextDecodingError
 
fn clone(&self) -> TextDecodingError
Returns a duplicate 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 TextDecodingError
 
impl Debug for TextDecodingError
Source§impl From<TextDecodingError> for DecodingError
 
impl From<TextDecodingError> for DecodingError
Source§fn from(tbe: TextDecodingError) -> Self
 
fn from(tbe: TextDecodingError) -> Self
Converts to this type from the input type.
impl Copy for TextDecodingError
Auto Trait Implementations§
impl Freeze for TextDecodingError
impl RefUnwindSafe for TextDecodingError
impl Send for TextDecodingError
impl Sync for TextDecodingError
impl Unpin for TextDecodingError
impl UnwindSafe for TextDecodingError
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