[][src]Enum quicksilver::graphics::AtlasItem

pub enum AtlasItem {
    Image(Image),
    Animation(Vec<Image>),
}

An individual named item of an Atlas

If there is only one frame / no index for an Atlas item, it will be an Image, otherwise, it will be an Animation.

Variants

Image(Image)

A still image frame

Animation(Vec<Image>)

A list of image frames in order

Methods

impl AtlasItem[src]

pub fn unwrap_image(self) -> Image[src]

Unwrap the enum to a still frame, panicking if it is an animation

pub fn unwrap_animation(self) -> Vec<Image>[src]

Unwrap the enum to an animationo, panicking if it is an image

Trait Implementations

impl Clone for AtlasItem[src]

impl Debug for AtlasItem[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Downcast for T where
    T: Any