fn read_entry(&mut self) -> TiffResult<Option<(Tag, ifd::Entry)>> {
        let tag = Tag::from_u16_exhaustive(self.read_short()?);
        let type_ = match Type::from_u16(self.read_short()?) {
            Some(t) => t,
            None => {
                // Unknown type. Skip this entry according to spec.
                self.read_long()?;
                self.read_long()?;
                return Ok(None);
            }
        };
        Ok(Some((
            tag,
            ifd::Entry::new(
                type_,
                self.read_long()?,   // count
                self.read_offset()?, // offset
            ),
        )))
    }
/// Reads a IFD entry.
// An IFD entry has four fields:
//
// Tag   2 bytes
// Type  2 bytes
// Count 4 bytes
// Value 4 bytes either a pointer the value itself
Reads a IFD entry.
An IFD entry has four fields.

Tag   2 bytes
Type  2 bytes
Count 4 bytes
Value 4 bytes either a pointer the value itself
Reads a IFD entry . An IFD entry has four fields . Tag 2 bytes Type 2 bytes Count 4 bytes Value 4 bytes either a pointer the value itself
fn read_entry(&mut self) -> TiffResult<Option<(Tag, ifd::Entry)>> {
        let tag = Tag::from_u16_exhaustive(self.read_short()?);
        let type_ = match Type::from_u16(self.read_short()?) {
            Some(t) => t,
            None => {
                // Unknown type. Skip this entry according to spec.
                self.read_long()?;
                self.read_long()?;
                return Ok(None);
            }
        };
        Ok(Some((
            tag,
            ifd::Entry::new(
                type_,
                self.read_long()?,   // count
                self.read_offset()?, // offset
            ),
        )))
    }
fn read_entry ( & mut self ) -> TiffResult < Option < ( Tag , ifd :: Entry ) > > { let tag = Tag :: from_u16_exhaustive ( self . read_short ( ) ? ) ; let type_ = match Type :: from_u16 ( self . read_short ( ) ? ) { Some ( t ) => t , None => { // Unknown type. Skip this entry according to spec. self . read_long ( ) ? ; self . read_long ( ) ? ; return Ok ( None ) ; } } ; Ok ( Some ( ( tag , ifd :: Entry :: new ( type_ , self . read_long ( ) ? , // count self . read_offset ( ) ? , // offset ) , ) ) ) }
Reads a IFD entry.
Reads a IFD entry .
&mut self
&mut self