Struct PixmapHeader

struct PixmapHeader { ... }

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

Implementations

impl Clone for PixmapHeader

fn clone(self: &Self) -> PixmapHeader

impl Copy for PixmapHeader

impl Debug for PixmapHeader

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

impl Freeze for PixmapHeader

impl RefUnwindSafe for PixmapHeader

impl Send for PixmapHeader

impl Sync for PixmapHeader

impl Unpin for PixmapHeader

impl UnsafeUnpin for PixmapHeader

impl UnwindSafe for PixmapHeader

impl<T> Any for PixmapHeader

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PixmapHeader

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PixmapHeader

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for PixmapHeader

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for PixmapHeader

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for PixmapHeader

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for PixmapHeader

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for PixmapHeader

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PixmapHeader

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PixmapHeader

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>