pub enum FileFormat {
Jpeg,
Tiff,
CanonRaw,
NikonRaw,
SonyRaw,
Dng,
}Expand description
Supported file formats
Variants§
Implementations§
Source§impl FileFormat
impl FileFormat
Sourcepub fn file_type(&self) -> &'static str
pub fn file_type(&self) -> &'static str
Get ExifTool-compatible FileType name ExifTool.pm %fileTypeLookup hash maps extensions to these type names See: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool.pm#L229-L580
Sourcepub fn file_type_extension(&self) -> &'static str
pub fn file_type_extension(&self) -> &'static str
Get ExifTool-compatible FileTypeExtension Based on ExifTool.pm %fileTypeExt hash overrides ExifTool.pm:582-592 - Special cases where extension differs from FileType See: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool.pm#L582-L592 Note: ExifTool does NOT uppercase the extension despite the uc() call in FoundTag
Trait Implementations§
Source§impl Clone for FileFormat
impl Clone for FileFormat
impl Copy for FileFormat
Source§impl Debug for FileFormat
impl Debug for FileFormat
impl Eq for FileFormat
Source§impl PartialEq for FileFormat
impl PartialEq for FileFormat
impl StructuralPartialEq for FileFormat
Auto Trait Implementations§
impl Freeze for FileFormat
impl RefUnwindSafe for FileFormat
impl Send for FileFormat
impl Sync for FileFormat
impl Unpin for FileFormat
impl UnsafeUnpin for FileFormat
impl UnwindSafe for FileFormat
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