Struct image::pnm::PixmapHeader [−][src]
pub struct PixmapHeader {
pub encoding: SampleEncoding,
pub height: u32,
pub width: u32,
pub maxval: u32,
}Header produced by a ppm file ("Portable Pixel Map")
Fields
encoding: SampleEncoding
Binary or Ascii encoded file
height: u32
Height of the image file
width: u32
Width of the image file
maxval: u32
Maximum sample value within the image
Trait Implementations
impl Clone for PixmapHeader[src]
impl Clone for PixmapHeaderfn clone(&self) -> PixmapHeader[src]
fn clone(&self) -> PixmapHeaderReturns 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 Copy for PixmapHeader[src]
impl Copy for PixmapHeaderimpl Debug for PixmapHeader[src]
impl Debug for PixmapHeaderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<PixmapHeader> for PNMHeader[src]
impl From<PixmapHeader> for PNMHeaderfn from(header: PixmapHeader) -> Self[src]
fn from(header: PixmapHeader) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for PixmapHeader
impl Send for PixmapHeaderimpl Sync for PixmapHeader
impl Sync for PixmapHeader