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