pub enum MagicFileFormat {
Text,
Directory,
Binary,
}Expand description
Represents the format of a magic file or directory
Variants§
Text
Text-based magic file (human-readable)
Directory
Directory containing multiple magic files (Magdir pattern)
Binary
Binary compiled magic file (.mgc format)
Trait Implementations§
Source§impl Clone for MagicFileFormat
impl Clone for MagicFileFormat
Source§fn clone(&self) -> MagicFileFormat
fn clone(&self) -> MagicFileFormat
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 MagicFileFormat
impl Debug for MagicFileFormat
Source§impl PartialEq for MagicFileFormat
impl PartialEq for MagicFileFormat
impl Copy for MagicFileFormat
impl Eq for MagicFileFormat
impl StructuralPartialEq for MagicFileFormat
Auto Trait Implementations§
impl Freeze for MagicFileFormat
impl RefUnwindSafe for MagicFileFormat
impl Send for MagicFileFormat
impl Sync for MagicFileFormat
impl Unpin for MagicFileFormat
impl UnwindSafe for MagicFileFormat
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