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>>
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,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Frames<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Frames<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Frames<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for Frames<'a>
impl<T> Itertools for Frames<'a>
where
T: Iterator + ?Sized,
impl<T> Pointable for Frames<'a>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for Frames<'a>
where
T: ?Sized,
impl<T, U> Into<U> for Frames<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Frames<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Frames<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>