Type Alias image::codecs::pnm::PnmSubtype
source · pub type PnmSubtype = PNMSubtype;
Expand description
Aliased Type§
enum PnmSubtype {
Bitmap(SampleEncoding),
Graymap(SampleEncoding),
Pixmap(SampleEncoding),
ArbitraryMap,
}
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
source§impl PNMSubtype
impl PNMSubtype
sourcepub fn magic_constant(self) -> &'static [u8; 2]
pub fn magic_constant(self) -> &'static [u8; 2]
Get the two magic constant bytes corresponding to this format subtype.
sourcepub fn sample_encoding(self) -> SampleEncoding
pub fn sample_encoding(self) -> SampleEncoding
Whether samples are stored as binary or as decimal ascii
Trait Implementations
source§impl Clone for PNMSubtype
impl Clone for PNMSubtype
source§fn clone(&self) -> PNMSubtype
fn clone(&self) -> PNMSubtype
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more