rect-iter

Build Status License: MIT

This library provides general iterator for enumerating Rectangle.

There are many libralies handle 2D rectangle area, so I think it's convinient if we can use those libraries in the same way.

Example

with image feature:

``` rust extern crate rect-iter; extern crate image; use image::DynamicImage; use rectiter::{genrect, RectRange}; fn main() { let img = image::open("a.png"); let img = match img { DynamicImage::ImageRgba8(img) => img, x => x.torgba(), }; let (x, y) = (img.width(), img.height()); let imgrange = RectRange::zerostart(x, y).unwrap(); let red = genrect(&b, || vec![vec![0; x]; y], imgrange.clone(), imgrange.clone()); }

```