Enum PnmSubtype
pub enum PnmSubtype
Denotes the category of the magic number
Variants
-
Bitmap(SampleEncoding) Magic numbers P1 and P4
-
Graymap(SampleEncoding) Magic numbers P2 and P5
-
Pixmap(SampleEncoding) Magic numbers P3 and P6
-
ArbitraryMap Magic number P7
Implementations
impl PnmSubtype
fn magic_constant(self) -> &'static [u8; 2]Get the two magic constant bytes corresponding to this format subtype.
fn sample_encoding(self) -> SampleEncodingWhether samples are stored as binary or as decimal ascii
Trait Implementations
impl Clone for PnmSubtype
fn clone(&self) -> Self
impl Copy for PnmSubtype
impl Debug for PnmSubtype
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for PnmSubtype
impl PartialEq for PnmSubtype
fn eq(&self, other: &Self) -> bool