pub enum AnimationDecode {
Static,
Animated(Animation),
Unsupported(String),
}Expand description
Outcome of decode_animation.
Variants§
Static
Not an animation (single frame / static): the caller decodes and displays it normally, with no hint.
Animated(Animation)
A decoded multi-frame animation to play.
Unsupported(String)
The source is an animation, but its frames could not be decoded
(e.g. a 16-bit APNG — the image crate’s APNG decoder rejects
Rgb16). The caller should fall back to the static first frame and
hint the user, rather than silently dropping the animation. Carries a
short human-facing reason.
Auto Trait Implementations§
impl Freeze for AnimationDecode
impl RefUnwindSafe for AnimationDecode
impl Send for AnimationDecode
impl Sync for AnimationDecode
impl Unpin for AnimationDecode
impl UnsafeUnpin for AnimationDecode
impl UnwindSafe for AnimationDecode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more