pub struct Entry<'a> {
pub tag: u16,
pub typ: u16,
pub count: u32,
pub order: ByteOrder,
pub data: &'a [u8],
pub value_field: u32,
pub value_pos: usize,
}Expand description
A single IFD entry. data holds the raw value bytes (inline or referenced).
Fields§
§tag: u16§typ: u16§count: u32§order: ByteOrder§data: &'a [u8]Raw value bytes (count * type_size bytes, possibly truncated if lenient).
value_field: u32The raw 4-byte value/offset field (offset relative to the IFD base).
value_pos: usizeAbsolute position of the value bytes inside the slice the TIFF was parsed from.
Implementations§
Source§impl<'a> Entry<'a>
impl<'a> Entry<'a>
pub fn is_empty(&self) -> bool
Sourcepub fn u32(&self, i: usize) -> Option<u32>
pub fn u32(&self, i: usize) -> Option<u32>
Value i as u32 (integer types; rationals are truncated).
pub fn u16(&self, i: usize) -> Option<u16>
pub fn f32(&self, i: usize) -> Option<f32>
pub fn f32s(&self) -> Vec<f32>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'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