pub enum FormatSpec {
Fixed(BinaryDataFormat),
Array {
base_format: BinaryDataFormat,
count_expr: String,
},
StringWithLength {
length_expr: String,
},
}
Expand description
Format specification that may contain expressions ExifTool: Format with expressions like “int16s[$val{0}]”
Variants§
Fixed(BinaryDataFormat)
Fixed format without expressions
Array
Variable format with expression for count ExifTool: “int16s[$val{0}]” -> Array { base: Int16s, count_expr: “$val{0}” }
StringWithLength
Variable-length string with expression for length ExifTool: “string[$val{3}]” -> StringWithLength { length_expr: “$val{3}” }
Implementations§
Source§impl FormatSpec
impl FormatSpec
Trait Implementations§
Source§impl Clone for FormatSpec
impl Clone for FormatSpec
Source§fn clone(&self) -> FormatSpec
fn clone(&self) -> FormatSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FormatSpec
impl Debug for FormatSpec
Source§impl PartialEq for FormatSpec
impl PartialEq for FormatSpec
impl Eq for FormatSpec
impl StructuralPartialEq for FormatSpec
Auto Trait Implementations§
impl Freeze for FormatSpec
impl RefUnwindSafe for FormatSpec
impl Send for FormatSpec
impl Sync for FormatSpec
impl Unpin for FormatSpec
impl UnwindSafe for FormatSpec
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