8 unstable releases (3 breaking)
|0.4.0||Aug 13, 2022|
|0.3.3||Jul 6, 2022|
|0.3.1||Jun 22, 2022|
|0.2.0||Jun 18, 2022|
#631 in Rust patterns
157 downloads per month
Used in stackblur-iter
A small crate for iterating over the rows or columns of
This crate exports four traits that allow creating iterators over rows or
Img<*const [T]>; allows creating iterators over
Img<*mut [T]>; allows creating iterators over
Img<&[T]>; allows creating iterators over shared references
Img<&mut [T]>; allows creating iterators over mutable references
As well as two utility traits for converting to
Img<*const [T]> or
ImgAsPtrfor conversions to
ImgAsMutPtrfor conversions to
This is actually not implemented by anything other than
Img<*mut [T]>, but it exists for the purpose of documenting why it cannot be implemented for
Additionally, when the (experimental!)
simd feature is enabled, there are four
more traits -
ImgSimdIterPtrMut. These allow creating iterators over multiple rows or
columns of an image at once. They don't actually depend on SIMD or a nightly
compiler - they just return multiple items at once.
unsafe because they offset on
the provided pointers.
ImgIterMut cannot include safe versions
because the pointer iterators may outlive the references.
See the documentation for more information.