imgref-iter

A small crate for iterating over the rows or columns of imgref buffers.

This crate exports four traits that allow creating iterators over rows or columns of imgref::Imgs:

As well as two utility traits for converting to Img<*const [T]> or Img<*mut [T]>:

Additionally, when the (experimental!) simd feature is enabled, there are four more traits - ImgSimdIter, ImgSimdIterMut, ImgSimdIterPtr, and 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.

Methods on ImgIterPtr and ImgIterPtrMut are unsafe because they offset on the provided pointers. ImgIter and ImgIterMut cannot include safe versions because the pointer iterators may outlive the references.

See the documentation for more information.