Struct GraymapHeader

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

fn clone(&self) -> Self

impl Copy for GraymapHeader

impl Debug for GraymapHeader

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for GraymapHeader

impl RefUnwindSafe for GraymapHeader

impl Send for GraymapHeader

impl Sync for GraymapHeader

impl Unpin for GraymapHeader

impl UnsafeUnpin for GraymapHeader

impl UnwindSafe for GraymapHeader

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for GraymapHeader where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for GraymapHeader where ST: ?Sized, DT: ?Sized,

impl<T> Any for GraymapHeader where T: 'static + ?Sized,

impl<T> Borrow<T> for GraymapHeader where T: ?Sized,

impl<T> BorrowMut<T> for GraymapHeader where T: ?Sized,

impl<T> CloneToUninit for GraymapHeader where T: Clone,

impl<T> From<T> for GraymapHeader

impl<T> IntoEither for GraymapHeader

impl<T> Pointable for GraymapHeader

impl<T> Read<Exclusive, BecauseExclusive> for GraymapHeader where T: ?Sized,

impl<T> ToOwned for GraymapHeader where T: Clone,

impl<T, U> Into<U> for GraymapHeader where U: From<T>,

impl<T, U> TryFrom<U> for GraymapHeader where U: Into<T>,

impl<T, U> TryInto<U> for GraymapHeader where U: TryFrom<T>,