Skip to main content

Count

Enum Count 

Source
pub enum Count {
    Tag(u16),
    ToEnd,
    Bytes(u64),
    JpegQuantization,
    JpegHuffman,
}
Expand description

How long the extents of an ExtentRule are.

Variants§

§

Tag(u16)

Byte counts in this tag, one per offset.

§

ToEnd

One extent from the first offset to the end of the TIFF.

§

Bytes(u64)

One extent of this many bytes from the first offset.

§

JpegQuantization

A 64-byte old-style JPEG quantization table at each nonzero offset. Zero means no separate table; repeated offsets may share a table.

§

JpegHuffman

An old-style JPEG Huffman table at each nonzero offset: 16 code-count bytes followed by their sum in symbol bytes. Reading the counts uses the walk’s scan budget. Zero means no separate table.

Auto Trait Implementations§

§

impl Freeze for Count

§

impl RefUnwindSafe for Count

§

impl Send for Count

§

impl Sync for Count

§

impl Unpin for Count

§

impl UnsafeUnpin for Count

§

impl UnwindSafe for Count

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.