[][src]Struct exif::Exif

pub struct Exif { /* fields omitted */ }

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

impl Exif[src]

pub fn buf(&self) -> &[u8][src]

Returns the slice that contains the TIFF data.

pub fn fields(&self) -> impl ExactSizeIterator<Item = &Field>[src]

Returns an iterator of Exif fields.

pub fn little_endian(&self) -> bool[src]

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

pub fn get_field(&self, tag: Tag, ifd_num: In) -> Option<&Field>[src]

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

Auto Trait Implementations

impl !RefUnwindSafe for Exif

impl Send for Exif

impl !Sync for Exif

impl Unpin for Exif

impl UnwindSafe for Exif

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.