Enum png::text_metadata::TextEncodingError
source · pub(crate) enum TextEncodingError {
Unrepresentable,
InvalidKeywordSize,
CompressionError,
}
Expand description
Text encoding errors that is wrapped by the standard EncodingError type
Variants§
Unrepresentable
Unrepresentable characters in string
InvalidKeywordSize
Keyword longer than 79 bytes or empty
CompressionError
Error encountered while compressing text
Trait Implementations§
source§impl Clone for TextEncodingError
impl Clone for TextEncodingError
source§fn clone(&self) -> TextEncodingError
fn clone(&self) -> TextEncodingError
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 TextEncodingError
impl Debug for TextEncodingError
source§impl From<TextEncodingError> for EncodingError
impl From<TextEncodingError> for EncodingError
source§fn from(tee: TextEncodingError) -> Self
fn from(tee: TextEncodingError) -> Self
Converts to this type from the input type.
impl Copy for TextEncodingError
Auto Trait Implementations§
impl Freeze for TextEncodingError
impl RefUnwindSafe for TextEncodingError
impl Send for TextEncodingError
impl Sync for TextEncodingError
impl Unpin for TextEncodingError
impl UnwindSafe for TextEncodingError
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