Struct GraymapHeader
struct GraymapHeader { ... }
Header produced by a pgm file ("Portable Gray Map")
Fields
encoding: SampleEncodingBinary or Ascii encoded file
height: u32Height of the image file
width: u32Width of the image file
maxwhite: u32Maximum sample value within the image
Implementations
impl Clone for GraymapHeader
fn clone(self: &Self) -> GraymapHeader
impl Copy for GraymapHeader
impl Debug for GraymapHeader
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
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
impl<T> Any for GraymapHeader
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for GraymapHeader
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for GraymapHeader
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for GraymapHeader
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for GraymapHeader
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for GraymapHeader
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for GraymapHeader
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for GraymapHeader
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for GraymapHeader
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for GraymapHeader
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>