Enum png::text_metadata::TextDecodingError
source · 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 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 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