[][src]Struct pyxel::Animation

pub struct Animation { /* fields omitted */ }

A Pyxel animation.

Methods

impl Animation[src]

pub fn base_tile(&self) -> usize[src]

Returns the canvas tile this animation starts on.

pub fn frame_duration(&self) -> Duration[src]

Returns the base frame duration for this animation.

pub fn frame_duration_multipliers(&self) -> &Vec<f64>[src]

Returns the frame duration multipliers for this animation.

pub fn length(&self) -> usize[src]

Returns the number of frames in this animation.

pub fn name(&self) -> &String[src]

Returns the name of this animation.

Trait Implementations

impl Debug for Animation[src]

impl<'de> Deserialize<'de> for Animation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]