Enum rofl::Template [] [src]

pub enum Template {
    Image(DynamicImageImageFormat),
    Animation(GifAnimation),
}

Represents an image macro template.

Currently, templates can either be regular (still) images, or animations loaded from a GIF file.

Variants

Single still image, loaded from some image format.

An animation, loaded from a GIF.

Methods

impl Template
[src]

Create the template for an image loaded from a file. Image format is figured out from the file extension.

Create the template for an animation loaded from a GIF file.

impl Template
[src]

Whether this is an animated template.

Number of images that comprise the template

Iterate over all DynamicImages in this template.

The preferred format for image macros generated using this template. This is usually the same that the template was loaded from.

Trait Implementations

impl Clone for Template
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Template
[src]

Formats the value using the given formatter.