Struct BitmapHeader

pub struct BitmapHeader { pub encoding: SampleEncoding, pub height: u32, pub width: u32 }

Header produced by a pbm file ("Portable Bit Map")

Fields

encoding: SampleEncoding

Binary or Ascii encoded file

height: u32

Height of the image file

width: u32

Width of the image file

Trait Implementations

impl Clone for BitmapHeader

fn clone(&self) -> BitmapHeader

impl Copy for BitmapHeader

impl Debug for BitmapHeader

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

Auto Trait Implementations

impl Freeze for BitmapHeader

impl RefUnwindSafe for BitmapHeader

impl Send for BitmapHeader

impl Sync for BitmapHeader

impl Unpin for BitmapHeader

impl UnsafeUnpin for BitmapHeader

impl UnwindSafe for BitmapHeader

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for BitmapHeader

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for BitmapHeader

impl<T> Pointable for BitmapHeader

const ALIGN: usize = _;
type Init = T;
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> Read<Exclusive, BecauseExclusive> for BitmapHeader where T: ?Sized,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(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<U> for BitmapHeader where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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