Struct titanium::desktop::gui::libdruid::piet::image_crate::codecs::pnm::GraymapHeader
pub struct GraymapHeader {
pub encoding: SampleEncoding,
pub height: u32,
pub width: u32,
pub maxwhite: u32,
}
Expand description
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
impl Clone for GraymapHeader
§fn clone(&self) -> GraymapHeader
fn clone(&self) -> GraymapHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GraymapHeader
impl Debug for GraymapHeader
§impl From<GraymapHeader> for PnmHeader
impl From<GraymapHeader> for PnmHeader
§fn from(header: GraymapHeader) -> PnmHeader
fn from(header: GraymapHeader) -> PnmHeader
Converts to this type from the input type.
impl Copy for GraymapHeader
Auto Trait Implementations§
impl RefUnwindSafe for GraymapHeader
impl Send for GraymapHeader
impl Sync for GraymapHeader
impl Unpin for GraymapHeader
impl UnwindSafe for GraymapHeader
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.