Struct Frames

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

An implementation dependent iterator, reading the frames as requested

Implementations

impl<'a> Frames<'a>

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

Creates a new Frames from an implementation specific iterator.

fn collect_frames(self) -> ImageResult<Vec<Frame>>

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 Iterator for Frames<'_>

type Item = Result<Frame, ImageError>;
fn next(&mut self) -> Option<ImageResult<Frame>>

Auto Trait Implementations

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

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

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

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

impl<'a> Freeze for Frames<'a>

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

impl<'a> UnsafeUnpin for Frames<'a>

Blanket Implementations

impl<I> IntoIterator for Frames<'a> where I: Iterator,

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Frames<'a> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Frames<'a> where ST: ?Sized, DT: ?Sized,

impl<T> Any for Frames<'a> where T: 'static + ?Sized,

impl<T> Borrow<T> for Frames<'a> where T: ?Sized,

impl<T> BorrowMut<T> for Frames<'a> where T: ?Sized,

impl<T> From<T> for Frames<'a>

impl<T> IntoEither for Frames<'a>

impl<T> Itertools for Frames<'a> where T: Iterator + ?Sized,

impl<T> Pointable for Frames<'a>

impl<T> Read<Exclusive, BecauseExclusive> for Frames<'a> where T: ?Sized,

impl<T, U> Into<U> for Frames<'a> where U: From<T>,

impl<T, U> TryFrom<U> for Frames<'a> where U: Into<T>,

impl<T, U> TryInto<U> for Frames<'a> where U: TryFrom<T>,