Struct icns::OSType [] [src]

pub struct OSType(pub [u8; 4]);

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.

Trait Implementations

impl Display for OSType

fn fmt(&self, out: &mut Formatter) -> Result<(), Error>

impl FromStr for OSType

type Err = String

fn from_str(input: &str) -> Result<OSType, String>

Derived Implementations

impl PartialOrd for OSType

fn partial_cmp(&self, __arg_0: &OSType) -> Option<Ordering>

fn lt(&self, __arg_0: &OSType) -> bool

fn le(&self, __arg_0: &OSType) -> bool

fn gt(&self, __arg_0: &OSType) -> bool

fn ge(&self, __arg_0: &OSType) -> bool

impl PartialEq for OSType

fn eq(&self, __arg_0: &OSType) -> bool

fn ne(&self, __arg_0: &OSType) -> bool

impl Ord for OSType

fn cmp(&self, __arg_0: &OSType) -> Ordering

impl Hash for OSType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for OSType

impl Debug for OSType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for OSType

impl Clone for OSType

fn clone(&self) -> OSType

1.0.0fn clone_from(&mut self, source: &Self)