pub struct PngTextChunks { /* private fields */ }Expand description
PNG tEXt chunks, decoded as Latin-1 (key, value) pairs in file
order.
Duplicate keys are preserved (PNG spec permits multiple tEXt
chunks with the same keyword). Encoding is strict Latin-1 per spec
— no UTF-8 sniffing.
Note: when a PNG carries EXIF inside a Raw profile type exif /
Raw profile type APP1 text chunk (legacy ImageMagick / Photoshop
pattern), the EXIF entries are merged into the Exif (under
ImageMetadata.exif) transparently; the original text chunk is
also visible here.
Forward-compatible: future iTXt / zTXt support can extend
PngTextChunks non-breakingly.
Implementations§
Trait Implementations§
Source§impl Clone for PngTextChunks
impl Clone for PngTextChunks
Source§fn clone(&self) -> PngTextChunks
fn clone(&self) -> PngTextChunks
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 PngTextChunks
impl Debug for PngTextChunks
Source§impl Default for PngTextChunks
impl Default for PngTextChunks
Source§fn default() -> PngTextChunks
fn default() -> PngTextChunks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PngTextChunks
impl<'de> Deserialize<'de> for PngTextChunks
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PngTextChunks
impl RefUnwindSafe for PngTextChunks
impl Send for PngTextChunks
impl Sync for PngTextChunks
impl Unpin for PngTextChunks
impl UnsafeUnpin for PngTextChunks
impl UnwindSafe for PngTextChunks
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