pub struct ImportedResourceFork {
pub data: Vec<u8>,
pub data_fork: Option<Vec<u8>>,
pub type_code: Option<[u8; 4]>,
pub creator_code: Option<[u8; 4]>,
pub name: Option<String>,
pub finder_flags: Option<u16>,
}Expand description
Metadata extracted from a resource fork container (AppleDouble, MacBinary, etc.).
Fields§
§data: Vec<u8>Raw resource fork bytes.
data_fork: Option<Vec<u8>>The data fork bytes (set for the whole-file containers — MacBinary and BinHex — where the wrapper carries both forks).
type_code: Option<[u8; 4]>4-byte type code (e.g. TEXT), if found in the container.
creator_code: Option<[u8; 4]>4-byte creator code (e.g. ttxt), if found in the container.
name: Option<String>The Mac filename recorded inside a whole-file container, so an import
lands Foo rather than the host’s Foo.bin / Foo.hqx wrapper name.
finder_flags: Option<u16>Finder flags (fdFlags) from the container’s Finder info, when present.
Trait Implementations§
Source§impl Clone for ImportedResourceFork
impl Clone for ImportedResourceFork
Source§fn clone(&self) -> ImportedResourceFork
fn clone(&self) -> ImportedResourceFork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImportedResourceFork
impl RefUnwindSafe for ImportedResourceFork
impl Send for ImportedResourceFork
impl Sync for ImportedResourceFork
impl Unpin for ImportedResourceFork
impl UnsafeUnpin for ImportedResourceFork
impl UnwindSafe for ImportedResourceFork
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