mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Improved foreach_with_pre_reading()
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
#[inline(always)]
|
||||
pub(crate) fn foreach_with_pre_reading<D, I>(
|
||||
mut iter: impl Iterator<Item = I>,
|
||||
read_data: fn(src: I) -> D,
|
||||
process_data: fn(data: D),
|
||||
mut read_data: impl FnMut(I) -> D,
|
||||
mut process_data: impl FnMut(D),
|
||||
) {
|
||||
let mut next_data: D;
|
||||
if let Some(src) = iter.next() {
|
||||
|
||||
Reference in New Issue
Block a user