pub struct Field {
pub tag: u16,
pub value: Value,
}Expand description
One field (entry) of an Image File Directory: a tag and its value.
On disk this is a 12-byte (classic) or 20-byte (BigTIFF) record — tag, field type, value count,
and a value-or-offset word — but once decoded only the tag and the resolved Value matter;
the field type and count are recoverable from the value.
Fields§
§tag: u16The 16-bit tag identifying the field (e.g. 256 for ImageWidth).
value: ValueThe field’s value.
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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