#[non_exhaustive]pub enum Foreign {
AppleDiskImage,
}Expand description
A format stuffr recognises in order to refuse it, rather than to open it.
Exists because some files’ first bytes carry a magic stuffr DOES open: an
Apple disk image (UDZO) begins with a zlib stream, so without this check
stuffr ls listed it as zlib and every other verb took it for a zlib
stream. Recognising the container from its own trailer is cheaper and
truer than teaching zlib’s check to guess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AppleDiskImage
An Apple disk image (UDIF: .dmg), identified by its koly trailer.
Trait Implementations§
impl Copy for Foreign
impl Eq for Foreign
impl StructuralPartialEq for Foreign
Auto Trait Implementations§
impl Freeze for Foreign
impl RefUnwindSafe for Foreign
impl Send for Foreign
impl Sync for Foreign
impl Unpin for Foreign
impl UnsafeUnpin for Foreign
impl UnwindSafe for Foreign
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