pub struct Frame {
pub tile_id: u32,
pub duration: u32,
}
Expand description
A structure describing a frame of a TMX tile animation.
Fields§
§tile_id: u32
The local ID of a tile within the parent tileset.
duration: u32
How long (in milliseconds) this frame should be displayed before advancing to the next frame.
Trait Implementations§
impl Copy for Frame
impl StructuralPartialEq for Frame
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