pub struct RawEntry {
pub tag: u16,
pub dtype: u16,
pub count: u32,
pub value_offset: u64,
pub inline: bool,
pub bytes: Vec<u8>,
pub unreadable: Option<String>,
}Expand description
One directory entry, with its bytes but without any interpretation of them.
Fields§
§tag: u16§dtype: u16TIFF type code. Kept as a number because an unrecognised type must still be reportable — refusing to describe an entry we cannot decode would hide it.
count: u32§value_offset: u64Where the value bytes live. For values of four bytes or fewer this points inside the 12-byte entry itself.
inline: boolTrue when the value was small enough to be stored in the entry.
bytes: Vec<u8>The value bytes, in file order. Empty if the entry could not be read — which is reported rather than treated as fatal, because one bad entry should not cost you the other two hundred.
unreadable: Option<String>Why bytes is empty, when it is.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawEntry
impl RefUnwindSafe for RawEntry
impl Send for RawEntry
impl Sync for RawEntry
impl Unpin for RawEntry
impl UnsafeUnpin for RawEntry
impl UnwindSafe for RawEntry
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