Struct BinaryDataTable

Source
pub struct BinaryDataTable {
    pub default_format: BinaryDataFormat,
    pub first_entry: Option<u32>,
    pub groups: HashMap<u8, String>,
    pub tags: HashMap<u32, BinaryDataTag>,
    pub data_member_tags: Vec<u32>,
    pub dependency_order: Vec<u32>,
}
Expand description

Binary data table configuration ExifTool: Tag table with PROCESS_PROC => &ProcessBinaryData

Fields§

§default_format: BinaryDataFormat

Default format for entries (ExifTool: FORMAT key)

§first_entry: Option<u32>

Starting index for unknown tag generation (ExifTool: FIRST_ENTRY key)

§groups: HashMap<u8, String>

Group hierarchy for tags (ExifTool: GROUPS key)

§tags: HashMap<u32, BinaryDataTag>

Tag definitions indexed by position

§data_member_tags: Vec<u32>

Tags that are DataMembers and must be extracted first ExifTool: DATAMEMBER => […] array of indices

§dependency_order: Vec<u32>

Processing order for tags with dependencies Phase 1: DataMember tags, Phase 2: dependent tags

Implementations§

Source§

impl BinaryDataTable

Source

pub fn analyze_dependencies(&mut self)

Analyze table to identify DataMember dependencies and set processing order ExifTool: Implicit dependency analysis during ProcessBinaryData

Source

pub fn tag_needs_evaluation(&self, index: u32) -> bool

Check if a tag needs expression evaluation

Source

pub fn get_tag_format_spec(&self, index: u32) -> Option<FormatSpec>

Get effective format for a tag (format_spec takes precedence)

Trait Implementations§

Source§

impl Clone for BinaryDataTable

Source§

fn clone(&self) -> BinaryDataTable

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BinaryDataTable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BinaryDataTable

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more