pub trait AnimationDecoder<'a> {
// Required method
fn into_frames(self) -> Frames<'a> ⓘ;
// Provided method
fn loop_count(&self) -> LoopCount { ... }
}Expand description
AnimationDecoder trait
Required Methods§
Sourcefn into_frames(self) -> Frames<'a> ⓘ
fn into_frames(self) -> Frames<'a> ⓘ
Consume the decoder producing a series of frames.
Provided Methods§
Sourcefn loop_count(&self) -> LoopCount
fn loop_count(&self) -> LoopCount
Loop count of the animated image.
By default, indicates the animation should run once. Formats may implement other defaults and read such metadata from the file.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".