Struct micro_games_kit::animation::SpriteAnimation
source · pub struct SpriteAnimation {
pub animation: FrameAnimation,
pub frames: HashMap<usize, SpriteAnimationFrame>,
}Fields§
§animation: FrameAnimation§frames: HashMap<usize, SpriteAnimationFrame>Implementations§
source§impl SpriteAnimation
impl SpriteAnimation
pub fn current_frame(&self) -> Option<&SpriteAnimationFrame>
Trait Implementations§
source§impl Clone for SpriteAnimation
impl Clone for SpriteAnimation
source§fn clone(&self) -> SpriteAnimation
fn clone(&self) -> SpriteAnimation
Returns a copy 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 !RefUnwindSafe for SpriteAnimation
impl !Send for SpriteAnimation
impl !Sync for SpriteAnimation
impl Unpin for SpriteAnimation
impl !UnwindSafe for SpriteAnimation
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