pub type PNMHeader = PnmHeader;
👎Deprecated: Use
PnmHeader
insteadExpand description
Aliased Type§
struct PNMHeader { /* private fields */ }
Implementations
source§impl PnmHeader
impl PnmHeader
sourcepub fn subtype(&self) -> PNMSubtype
pub fn subtype(&self) -> PNMSubtype
Retrieve the format subtype from which the header was created.
sourcepub fn maximal_sample(&self) -> u32
pub fn maximal_sample(&self) -> u32
The biggest value a sample can have. In other words, the colour resolution.
sourcepub fn as_bitmap(&self) -> Option<&BitmapHeader>
pub fn as_bitmap(&self) -> Option<&BitmapHeader>
Retrieve the underlying bitmap header if any
sourcepub fn as_graymap(&self) -> Option<&GraymapHeader>
pub fn as_graymap(&self) -> Option<&GraymapHeader>
Retrieve the underlying graymap header if any
sourcepub fn as_pixmap(&self) -> Option<&PixmapHeader>
pub fn as_pixmap(&self) -> Option<&PixmapHeader>
Retrieve the underlying pixmap header if any
sourcepub fn as_arbitrary(&self) -> Option<&ArbitraryHeader>
pub fn as_arbitrary(&self) -> Option<&ArbitraryHeader>
Retrieve the underlying arbitrary header if any
Trait Implementations
source§impl From<GraymapHeader> for PnmHeader
impl From<GraymapHeader> for PnmHeader
source§fn from(header: GraymapHeader) -> Self
fn from(header: GraymapHeader) -> Self
Converts to this type from the input type.
source§impl From<ArbitraryHeader> for PnmHeader
impl From<ArbitraryHeader> for PnmHeader
source§fn from(header: ArbitraryHeader) -> Self
fn from(header: ArbitraryHeader) -> Self
Converts to this type from the input type.
source§impl From<PixmapHeader> for PnmHeader
impl From<PixmapHeader> for PnmHeader
source§fn from(header: PixmapHeader) -> Self
fn from(header: PixmapHeader) -> Self
Converts to this type from the input type.
source§impl From<BitmapHeader> for PnmHeader
impl From<BitmapHeader> for PnmHeader
source§fn from(header: BitmapHeader) -> Self
fn from(header: BitmapHeader) -> Self
Converts to this type from the input type.