pub struct Converter<C: Convert> { /* private fields */ }
Expand description

This type is used to perform the conversion. It does nothing unless you call .convert().

Implementations

Return a new converter builder.

Convert lottie animation to the requested format.

The return type of this function depends on the output format. For webp, it returns the image data (WebPData). For gif, it returns () as the data is written directly to the writer that was passed to the .gif(..) function.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.