Struct exif::Reader [−][src]
pub struct Reader { /* fields omitted */ }The Reader struct reads a JPEG or TIFF image,
parses the Exif attributes in it, and holds the results.
Methods
impl Reader[src]
impl Readerpub fn new<R>(reader: &mut R) -> Result<Reader, Error> where
R: BufRead, [src]
pub fn new<R>(reader: &mut R) -> Result<Reader, Error> where
R: BufRead, Reads a JPEG or TIFF image and parses the Exif attributes in it.
If an error occurred, exif::Error is returned.
pub fn buf(&self) -> &[u8][src]
pub fn buf(&self) -> &[u8]Returns the slice that contains the TIFF data.
pub fn fields<'a>(&'a self) -> &[Field<'a>][src]
pub fn fields<'a>(&'a self) -> &[Field<'a>]Returns a slice of Exif fields.
pub fn little_endian(&self) -> bool[src]
pub fn little_endian(&self) -> boolReturns true if the TIFF data is in the little-endian byte order.
pub fn get_field(&self, tag: Tag, thumbnail: bool) -> Option<&Field>[src]
pub fn get_field(&self, tag: Tag, thumbnail: bool) -> Option<&Field>Returns a reference to the Exif field specified by the tag and the thumbnail flag.