pub enum IfdKind {
Main(u16),
Sub(u16),
Exif,
Gps,
Interop,
}Expand description
Which directory an entry was found in.
Worth distinguishing because the same tag number means different things in different
directories — tag 1 is InteroperabilityIndex under Interop and GPSLatitudeRef
under GPS. A reader that forgets where an entry came from cannot name it correctly.
Variants§
Main(u16)
Main image directory, and any further directories chained after it.
Sub(u16)
A directory referenced by tag 330. On raw files this is where the sensor lives.
Exif
Gps
Interop
Implementations§
Trait Implementations§
impl Copy for IfdKind
Source§impl<'de> Deserialize<'de> for IfdKind
impl<'de> Deserialize<'de> for IfdKind
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
impl Eq for IfdKind
impl StructuralPartialEq for IfdKind
Auto Trait Implementations§
impl Freeze for IfdKind
impl RefUnwindSafe for IfdKind
impl Send for IfdKind
impl Sync for IfdKind
impl Unpin for IfdKind
impl UnsafeUnpin for IfdKind
impl UnwindSafe for IfdKind
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