pub struct WowArrayIter<'a, T, R>{ /* private fields */ }Implementations§
Source§impl<'a, T, R> WowArrayIter<'a, T, R>
impl<'a, T, R> WowArrayIter<'a, T, R>
pub fn new(reader: &'a mut R, array: WowArray<T>) -> Result<Self>
Sourcepub fn next<F>(&mut self, f: F) -> Result<bool>
pub fn next<F>(&mut self, f: F) -> Result<bool>
Returns Ok(true) if there are items remaining or Ok(false) if not.
This iterator needs at least one item to get the item_size, so it will
read the first item and call f with Some(item) the first time and None
from then on. It’s the user’s responsibility to read the subsequent items.
The reader will always be at the correct offset for reading an item at the
closure execution start
When an Err is returned, it’s no longer safe to call this function again
Auto Trait Implementations§
impl<'a, T, R> Freeze for WowArrayIter<'a, T, R>
impl<'a, T, R> RefUnwindSafe for WowArrayIter<'a, T, R>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, R> Send for WowArrayIter<'a, T, R>
impl<'a, T, R> Sync for WowArrayIter<'a, T, R>
impl<'a, T, R> Unpin for WowArrayIter<'a, T, R>where
T: Unpin,
impl<'a, T, R> !UnwindSafe for WowArrayIter<'a, T, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more