Skip to content

Commit

Permalink
Document 'tag_iter()' method
Browse files Browse the repository at this point in the history
  • Loading branch information
gschulze committed Nov 25, 2024
1 parent 0670fbb commit fd2bd31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ impl<R: Read + Seek> Decoder<R> {
self.get_tag(tag)?.into_string()
}

/// Returns an iterator over all tags in the current image, along with their values.
pub fn tag_iter(&mut self) -> impl Iterator<Item = TiffResult<(Tag, ifd::Value)>> + '_ {
self.image.ifd.as_ref().unwrap().iter().map(|(tag, entry)| {
entry
Expand Down

0 comments on commit fd2bd31

Please sign in to comment.