pub struct Tag {
pub code: u16,
pub tag_type: TagType,
pub count: u64,
pub value: TagValue,
}Expand description
A parsed TIFF tag.
Fields§
§code: u16§tag_type: TagType§count: u64§value: TagValueImplementations§
Source§impl Tag
impl Tag
Sourcepub fn parse_classic(
code: u16,
type_code: u16,
count: u64,
value_offset_bytes: &[u8],
source: &dyn TiffSource,
byte_order: ByteOrder,
) -> Result<Self>
pub fn parse_classic( code: u16, type_code: u16, count: u64, value_offset_bytes: &[u8], source: &dyn TiffSource, byte_order: ByteOrder, ) -> Result<Self>
Parse a classic TIFF tag entry (12-byte IFD entry).
Sourcepub fn parse_bigtiff(
code: u16,
type_code: u16,
count: u64,
value_offset_bytes: &[u8],
source: &dyn TiffSource,
byte_order: ByteOrder,
) -> Result<Self>
pub fn parse_bigtiff( code: u16, type_code: u16, count: u64, value_offset_bytes: &[u8], source: &dyn TiffSource, byte_order: ByteOrder, ) -> Result<Self>
Parse a BigTIFF tag entry (20-byte IFD entry).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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