Struct exif::Exif

source · []
pub struct Exif { /* private fields */ }
Expand description

A struct that holds the parsed Exif attributes.

Examples

// Get a specific field.
let xres = exif.get_field(Tag::XResolution, In::PRIMARY)?;
assert_eq!(xres.display_value().with_unit(&exif).to_string(),
           "72 pixels per inch");
// Iterate over all fields.
for f in exif.fields() {
    println!("{} {} {}", f.tag, f.ifd_num, f.display_value());
}

Implementations

Returns the slice that contains the TIFF data.

Returns an iterator of Exif fields.

Returns true if the Exif data (TIFF structure) is in the little-endian byte order.

Returns a reference to the Exif field specified by the tag and the IFD number.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.