pub struct Frame<'a> {
pub image: ImageRef<'a>,
pub delay: (u16, u16),
}Expand description
One frame of an animation: the image and how long it is shown, as a
fraction of a second (delay.0 / delay.1).
Fields§
§image: ImageRef<'a>The frame’s pixels; every frame has the size and format of the first.
delay: (u16, u16)Numerator and denominator of the display time in seconds.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Frame<'a>
impl<'a> Freeze for Frame<'a>
impl<'a> Move for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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