pub struct AnimationFrame<'a> {
pub pixels: &'a [u8],
pub duration: u32,
}Expand description
A single frame in an animation sequence.
Fields§
§pixels: &'a [u8]Raw pixel data (must match width/height/layout from the encode call).
duration: u32Duration of this frame in ticks (tps_numerator/tps_denominator seconds per tick).
Auto Trait Implementations§
impl<'a> Freeze 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> 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