pub struct AnimationFrame<'a> {
pub pixels: &'a [u8],
pub duration_ms: u32,
}Expand description
One frame of an animation.
Fields§
§pixels: &'a [u8]width × height × 4 bytes of straight RGBA, row by row.
duration_ms: u32How long the frame shows, in milliseconds (at most 16 777 215).
Trait Implementations§
Source§impl<'a> Clone for AnimationFrame<'a>
impl<'a> Clone for AnimationFrame<'a>
impl<'a> Copy for AnimationFrame<'a>
Auto Trait Implementations§
impl<'a> Forget for AnimationFrame<'a>
impl<'a> Freeze for AnimationFrame<'a>
impl<'a> Move for AnimationFrame<'a>
impl<'a> RefUnwindSafe for AnimationFrame<'a>
impl<'a> Send for AnimationFrame<'a>
impl<'a> Sync for AnimationFrame<'a>
impl<'a> Unpin for AnimationFrame<'a>
impl<'a> UnsafeUnpin for AnimationFrame<'a>
impl<'a> UnwindSafe for AnimationFrame<'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