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]

[src]

Returns image dimensions from the contained metadata.

[src]

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

[src]

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.

[src]

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]

[src]

Formats the value using the given formatter. Read more

impl Clone for GenericMetadata
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for GenericMetadata
[src]

impl PartialEq for GenericMetadata
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations