pub struct Ifd<'a> {
pub offset: u32,
pub order: ByteOrder,
pub entries: Vec<Entry<'a>>,
pub sub_ifds: Vec<Ifd<'a>>,
pub exif: Option<Box<Ifd<'a>>>,
pub gps: Option<Box<Ifd<'a>>>,
pub next: u32,
}Expand description
An Image File Directory.
Fields§
§offset: u32Offset of this IFD relative to the TIFF base.
order: ByteOrder§entries: Vec<Entry<'a>>§sub_ifds: Vec<Ifd<'a>>SubIFDs (tag 0x14A), in order.
exif: Option<Box<Ifd<'a>>>§gps: Option<Box<Ifd<'a>>>§next: u32Offset of the next IFD in the chain (0 if none).
Implementations§
Source§impl<'a> Ifd<'a>
impl<'a> Ifd<'a>
pub fn get(&self, tag: u16) -> Option<&Entry<'a>>
pub fn has(&self, tag: u16) -> bool
pub fn u32(&self, tag: u16) -> Option<u32>
pub fn f64(&self, tag: u16) -> Option<f64>
pub fn string(&self, tag: u16) -> Option<String>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn compression(&self) -> u32
pub fn bps(&self) -> u32
pub fn is_reduced_resolution(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ifd<'a>
impl<'a> RefUnwindSafe for Ifd<'a>
impl<'a> Send for Ifd<'a>
impl<'a> Sync for Ifd<'a>
impl<'a> Unpin for Ifd<'a>
impl<'a> UnsafeUnpin for Ifd<'a>
impl<'a> UnwindSafe for Ifd<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more