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]
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.
fn buf(&self) -> &[u8]
Returns the slice that contains the TIFF data.
fn fields<'a>(&'a self) -> &[Field<'a>]
Returns a slice of Exif fields.
fn little_endian(&self) -> bool
Returns true if the TIFF data is in the little-endian byte order.