Struct image::Frames[][src]

pub struct Frames<'a> { /* fields omitted */ }

An implementation dependent iterator, reading the frames as requested

Implementations

impl<'a> Frames<'a>[src]

pub fn new(iterator: Box<dyn Iterator<Item = ImageResult<Frame>> + 'a>) -> Self[src]

Creates a new Frames from an implementation specific iterator.

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

Steps through the iterator from the current frame until the end and pushes each frame into a Vec. If en error is encountered that error is returned instead.

Note: This is equivalent to Frames::collect::<ImageResult<Vec<Frame>>>()

Trait Implementations

impl<'a> Iterator for Frames<'a>[src]

type Item = ImageResult<Frame>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Frames<'a>

impl<'a> !Send for Frames<'a>

impl<'a> !Sync for Frames<'a>

impl<'a> Unpin for Frames<'a>

impl<'a> !UnwindSafe for Frames<'a>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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.