[−][src]Struct exif::Exif
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()); }
Methods
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,