pub struct ImageFrame {
pub image: Image,
pub duration: Duration,
}Expand description
One decoded frame, prepared and ready to draw. Flutter dart:ui FrameInfo.
Fields§
§image: ImageThe frame itself, at whatever size the host produced.
duration: DurationHow long this frame stays on screen.
Zero for a still image, and for an animation whose file gives no delay — a caller showing one picks its own, as browsers do.
Trait Implementations§
Source§impl Clone for ImageFrame
impl Clone for ImageFrame
Auto Trait Implementations§
impl !RefUnwindSafe for ImageFrame
impl !UnwindSafe for ImageFrame
impl Freeze for ImageFrame
impl Send for ImageFrame
impl Sync for ImageFrame
impl Unpin for ImageFrame
impl UnsafeUnpin for ImageFrame
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