Struct sic_core::AnimatedImage[][src]

pub struct AnimatedImage { /* fields omitted */ }

Implementations

impl AnimatedImage[src]

pub fn from_frames(frames: Vec<Frame>) -> Self[src]

Consume a collection of frames to produce an AnimatedImage

pub fn try_into_static_image(
    self,
    index: usize
) -> Result<DynamicImage, SicCoreError>
[src]

Returns the selected frame from the animated image as static image

pub fn frames(&self) -> &[Frame][src]

Returns a slice of image Frames

pub fn frames_mut(&mut self) -> &mut [Frame][src]

Returns a mutable slice of image frames

pub fn collect_frames(&self) -> Vec<Frame>[src]

Collects and returns an owned collection of image frames

Trait Implementations

impl Clone for AnimatedImage[src]

impl Debug for AnimatedImage[src]

impl<'frames> TryFrom<Frames<'frames>> for AnimatedImage[src]

type Error = SicCoreError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.