pub struct BinHexFile {
pub name: String,
pub type_code: [u8; 4],
pub creator_code: [u8; 4],
pub flags: u16,
pub data_fork: Vec<u8>,
pub resource_fork: Vec<u8>,
}Expand description
A file decoded from / to be encoded into BinHex 4.0.
Fields§
§name: StringMacintosh filename (≤ 63 bytes).
type_code: [u8; 4]4-byte Finder type code (e.g. TEXT).
creator_code: [u8; 4]4-byte Finder creator code (e.g. ttxt).
flags: u1616-bit Finder flags.
data_fork: Vec<u8>Data fork bytes.
resource_fork: Vec<u8>Resource fork bytes.
Implementations§
Source§impl BinHexFile
impl BinHexFile
Sourcepub fn looks_like_archive(&self) -> bool
pub fn looks_like_archive(&self) -> bool
True when the decoded payload looks like a wrapped archive/disk image (by filename extension) — useful for the auto-unwrap dispatch.
Trait Implementations§
Source§impl Clone for BinHexFile
impl Clone for BinHexFile
Source§impl Debug for BinHexFile
impl Debug for BinHexFile
Source§impl PartialEq for BinHexFile
impl PartialEq for BinHexFile
impl StructuralPartialEq for BinHexFile
Auto Trait Implementations§
impl Freeze for BinHexFile
impl RefUnwindSafe for BinHexFile
impl Send for BinHexFile
impl Sync for BinHexFile
impl Unpin for BinHexFile
impl UnsafeUnpin for BinHexFile
impl UnwindSafe for BinHexFile
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