Struct Entry
pub struct Entry { /* private fields */ }
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
impl Entry
fn new(type_: Type, count: u32, offset: [u8; 4]) -> EntryCreate a new entry fit to be added to a standard TIFF IFD.
fn new_u64(type_: Type, count: u64, offset: [u8; 8]) -> EntryCreate a new entry with data for a Big TIFF IFD.
fn field_type(&self) -> Typefn count(&self) -> u64
Trait Implementations
impl Clone for Entry
fn clone(&self) -> Self
impl Debug for Entry
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Entry
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Entry
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Entry
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Entry
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Entry
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Entry
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Entry
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for Entry
where
T: ?Sized,
impl<T> ToOwned for Entry
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Entry
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Entry
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Entry
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>