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§impl Debug for FormatSpec
impl Debug for FormatSpec
impl Eq for FormatSpec
Source§impl PartialEq for FormatSpec
impl PartialEq 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 UnsafeUnpin 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