pub struct GifFrame<'a> {
pub pixels: &'a [u8],
pub delay: u16,
}Expand description
One frame of an animation: RGBA pixels, row by row, and how long the frame is shown in hundredths of a second.
Fields§
§pixels: &'a [u8]width × height × 4 bytes of straight (not premultiplied) RGBA.
delay: u16The display time in centiseconds.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for GifFrame<'a>
impl<'a> Freeze for GifFrame<'a>
impl<'a> Move for GifFrame<'a>
impl<'a> RefUnwindSafe for GifFrame<'a>
impl<'a> Send for GifFrame<'a>
impl<'a> Sync for GifFrame<'a>
impl<'a> Unpin for GifFrame<'a>
impl<'a> UnsafeUnpin for GifFrame<'a>
impl<'a> UnwindSafe for GifFrame<'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