exif_oxide/generated/ExifTool_pm/weakmagic.rs
1//! File types with weak magic number recognition (MP3)
2//!
3//! Auto-generated from third-party/exiftool/lib/Image/ExifTool.pm
4//! DO NOT EDIT MANUALLY - changes will be overwritten by codegen
5
6use std::collections::HashSet;
7use std::sync::LazyLock;
8
9// Generated weak magic file types boolean set
10// Source: ExifTool Image::ExifTool %weakMagic
11// Description: File types with weak magic number recognition (MP3)
12
13/// Static data for file types with weak magic number recognition (mp3) set (1 entries)
14static WEAK_MAGIC_FILE_TYPES_DATA: &[&str] = &["MP3"];
15
16/// File types with weak magic number recognition (MP3) boolean set table
17/// Built from static data on first access
18pub static WEAK_MAGIC_FILE_TYPES: LazyLock<HashSet<&'static str>> =
19 LazyLock::new(|| WEAK_MAGIC_FILE_TYPES_DATA.iter().copied().collect());
20
21/// Check if a file type is in the file types with weak magic number recognition (mp3) set
22pub fn is_weak_magic_file(file_type: &str) -> bool {
23 WEAK_MAGIC_FILE_TYPES.contains(file_type)
24}