Struct immeta::formats::png::Metadata [] [src]

pub struct Metadata {
    pub dimensions: Dimensions,
    pub color_type: ColorType,
    pub color_depth: u8,
    pub compression_method: CompressionMethod,
    pub filter_method: FilterMethod,
    pub interlace_method: InterlaceMethod,
}

Represents metadata of a PNG image.

Fields

dimensions: Dimensions

Width and height.

color_type: ColorType

Color type used in the image.

color_depth: u8

Color depth (bits per pixel) used in the image.

compression_method: CompressionMethod

Compression method used in the image.

filter_method: FilterMethod

Preprocessing method used in the image.

interlace_method: InterlaceMethod

Transmission order used in the image.

Trait Implementations

impl Debug for Metadata
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Metadata
[src]

fn eq(&self, __arg_0: &Metadata) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Metadata) -> bool

This method tests for !=.

impl Eq for Metadata
[src]

impl Clone for Metadata
[src]

fn clone(&self) -> Metadata

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl LoadableMetadata for Metadata
[src]

fn load<R: ?Sized + Read>(r: &mut R) -> Result<Metadata>

Loads the implementing type from the given input stream.

fn load_from_file<P: AsRef<Path>>(path: P) -> Result<Self>

Loads the implementing type from a file specified by the given path. Read more

fn load_from_buf(buf: &[u8]) -> Result<Self>

Loads the implementing type from an in-memory buffer. Read more