pub struct Entry { /* private fields */ }Expand description
A combination of type, count, and offset.
In a TIFF the data offset portion of an entry is used for inline data in case the length of the encoded value does not exceed the size of the offset field. Since the size of the offset field depends on the file kind (4 bytes for standard TIFF, 8 bytes for BigTIFF) the interpretation of this struct is only complete in combination with file metadata.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new(type_: Type, count: u32, offset: [u8; 4]) -> Entry
pub fn new(type_: Type, count: u32, offset: [u8; 4]) -> Entry
Create a new entry fit to be added to a standard TIFF IFD.
Sourcepub fn new_u64(type_: Type, count: u64, offset: [u8; 8]) -> Entry
pub fn new_u64(type_: Type, count: u64, offset: [u8; 8]) -> Entry
Create a new entry with data for a Big TIFF IFD.
pub fn field_type(&self) -> Type
pub fn count(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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