pub struct Header {
pub magic: u8,
pub width: NonZeroU32,
pub height: NonZeroU32,
pub max: Option<u8>,
}
Expand description
Header for the older PNM formats. Not applicable to PAM.
Fields§
§magic: u8
Magic number.
width: NonZeroU32
§height: NonZeroU32
§max: Option<u8>
Maximum value of each byte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more