[−][src]Struct silver_animation::SimpleLinearConfig
The easiest animation system. It renders the images in order, switching to the next one based on the animation speed.
Fields
images: Vec<Image>
The images that make up the animation.
timing: Timer
Controls how fast the animation plays.
Implementations
impl SimpleLinearConfig
[src]
pub fn into_animation(
self
) -> Linear<Vec<Image>, Box<dyn Fn(&mut Vec<Image>, usize, &mut Graphics, Rectangle) -> Result<()>>, Box<dyn Fn(&Vec<Image>) -> usize>>
[src]
self
) -> Linear<Vec<Image>, Box<dyn Fn(&mut Vec<Image>, usize, &mut Graphics, Rectangle) -> Result<()>>, Box<dyn Fn(&Vec<Image>) -> usize>>
Turn the config into an actual animation struct.
Auto Trait Implementations
impl !RefUnwindSafe for SimpleLinearConfig
impl !Send for SimpleLinearConfig
impl !Sync for SimpleLinearConfig
impl Unpin for SimpleLinearConfig
impl !UnwindSafe for SimpleLinearConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,