pub struct Frame {
pub cols: u8,
pub rows: u8,
pub tiles: [Tile; 12],
}
Expand description
The smallest part of an animation, contains tiles indices up to ANIM_TILES_PER_FRAME.
Fields§
§cols: u8
§rows: u8
§tiles: [Tile; 12]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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