pub struct ImageFrame {
pub colors: Box<[Color]>,
pub delay_time: u16,
}
Expand description
This struct is used to hold the color information and the delay time of a frame.
Fields§
§colors: Box<[Color]>
The colors that make up the image frame. This is used for drawing the image frame.
delay_time: u16
The amount of time this image frame should stay on screen before moving on to the next image frame.
Trait Implementations§
Source§impl Clone for ImageFrame
impl Clone for ImageFrame
Source§fn clone(&self) -> ImageFrame
fn clone(&self) -> ImageFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ImageFrame
impl RefUnwindSafe for ImageFrame
impl Send for ImageFrame
impl Sync for ImageFrame
impl Unpin for ImageFrame
impl UnwindSafe 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