From fd2bd310228bab364e0786886621957a83d51f1e Mon Sep 17 00:00:00 2001 From: Gunnar Schulze Date: Mon, 25 Nov 2024 08:38:07 +0100 Subject: [PATCH] Document 'tag_iter()' method --- src/decoder/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 90c2b80..2b8b0dd 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -894,6 +894,7 @@ impl Decoder { 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> + '_ { self.image.ifd.as_ref().unwrap().iter().map(|(tag, entry)| { entry