Struct image::pnm::ArbitraryHeader [−][src]
pub struct ArbitraryHeader {
pub height: u32,
pub width: u32,
pub depth: u32,
pub maxval: u32,
pub tupltype: Option<ArbitraryTuplType>,
}Header produced by a pam file ("Portable Arbitrary Map")
Fields
height: u32
Height of the image file
width: u32
Width of the image file
depth: u32
Number of color channels
maxval: u32
Maximum sample value within the image
tupltype: Option<ArbitraryTuplType>
Color interpretation of image pixels
Trait Implementations
impl Clone for ArbitraryHeader[src]
impl Clone for ArbitraryHeaderfn clone(&self) -> ArbitraryHeader[src]
fn clone(&self) -> ArbitraryHeaderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ArbitraryHeader[src]
impl Debug for ArbitraryHeaderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ArbitraryHeader> for PNMHeader[src]
impl From<ArbitraryHeader> for PNMHeaderfn from(header: ArbitraryHeader) -> Self[src]
fn from(header: ArbitraryHeader) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ArbitraryHeader
impl Send for ArbitraryHeaderimpl Sync for ArbitraryHeader
impl Sync for ArbitraryHeader