#grid #mesh #rust-meshgrid #meshgrid-rust

meshgrid

Meshgrid functionality for Rust

1 unstable release

Uses old Rust 2015

0.1.0 Nov 6, 2017

#123 in #grid

MIT license

2KB

rust-meshgrid (meshgrid) - v0.1.0

Meshgrid functionality for Rust.

Examples

2D loop.

for &(i, j) in meshgrid::new(1..3, 1..5).iter() {

        println!("[{}, {}]", i, j);
        
        // Do-stuff with i, j
}

Installation

Add this line to your Cargo.toml:

[dependencies]
meshgrid = "0.1.0"

and then add this line to your main.rs:

extern crate meshgrid;

No runtime deps