Enum immeta::GenericMetadata [] [src]

pub enum GenericMetadata {
    Png(Metadata),
    Gif(Metadata),
    Jpeg(Metadata),
    Webp(Metadata),
}

Represents metadata loaded from a file whose format was determined automatically.

Values of this type are obtained via immeta::load() function and its derivatives.

Variants

Methods

impl GenericMetadata
[src]

Returns image dimensions from the contained metadata.

Returns a MIME type string for the image type of the contained metadata.

Attemts to convert this value to the specific metadata type by value.

This method is needed only to provide a convenient syntax and it is not necessary because one may just match on the GenericMetadata value.

Attempts to convert this value to the sepcific metadata type by reference.

This method is needed only to provide a convenient syntax and it is not necessary because one may just match on the GenericMetadata value.

Trait Implementations

impl Debug for GenericMetadata
[src]

Formats the value using the given formatter.

impl Clone for GenericMetadata
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for GenericMetadata
[src]

impl PartialEq for GenericMetadata
[src]

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

This method tests for !=.