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>) -> SelfCreates a new
Framesfrom 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>>