pub struct Frame {
pub image: Image,
pub duration: Duration,
}Expand description
Frame is one decoded frame, ready to draw.
Fields§
§image: Imageimage is the frame, at the size the codec’s ImageInfo promised.
duration: Durationduration is how long the frame stays on screen; zero for a still image or when the file
gives no delay.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Frame
impl !UnwindSafe for Frame
impl Freeze for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
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