pub struct ExifEntry<'a> {
pub ifd: IfdIndex,
pub tag: TagOrCode,
pub value: &'a EntryValue,
}Expand description
Eager view into a single Exif entry. Yielded by crate::Exif::iter and
designed to be cheap to copy: the value is a borrow into the parent
crate::Exif.
§Why pub fields instead of getters?
ifd, tag, and value are independent — there is no cross-field
invariant to enforce. The Rust idiom for plain data carriers (cf.
std::ops::Range) is pub fields. The lazy yield type
crate::ExifIterEntry uses private fields because it carries a
value xor error invariant.
Fields§
§ifd: IfdIndex§tag: TagOrCode§value: &'a EntryValueTrait Implementations§
impl<'a> Copy for ExifEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExifEntry<'a>
impl<'a> RefUnwindSafe for ExifEntry<'a>
impl<'a> Send for ExifEntry<'a>
impl<'a> Sync for ExifEntry<'a>
impl<'a> Unpin for ExifEntry<'a>
impl<'a> UnsafeUnpin for ExifEntry<'a>
impl<'a> UnwindSafe for ExifEntry<'a>
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