pub struct OSType(pub [u8; 4]);
Expand description
A Macintosh OSType (also known as a ResType), used in ICNS files to identify the type of each icon element.
An OSType is a four-byte identifier used throughout Mac OS. In an ICNS
file, it indicates the type of data stored in an
IconElement
data block. For example, OSType
is32
represents 24-bit color data for a 16x16 icon, while OSType s8mk
represents the 8-bit alpha mask for that same icon.
See the IconType
enum for an easier-to-use
representation of icon data types.
Tuple Fields§
§0: [u8; 4]
Trait Implementations§
Source§impl Ord for OSType
impl Ord for OSType
Source§impl PartialOrd for OSType
impl PartialOrd for OSType
impl Copy for OSType
impl Eq for OSType
impl StructuralPartialEq for OSType
Auto Trait Implementations§
impl Freeze for OSType
impl RefUnwindSafe for OSType
impl Send for OSType
impl Sync for OSType
impl Unpin for OSType
impl UnwindSafe for OSType
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