Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
facorread committed Feb 25, 2020
1 parent 5ce6e66 commit 4f2b718
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wrapping_coords2d"
version = "0.1.5" # remember to update html_root_url
version = "0.1.6" # remember to update html_root_url
authors = ["Fabio A. Correa Duran <facorread@gmail.com>"]
categories = ["caching", "memory-management"]
description = "Translate between 1D indices and 2D coordinates with wrapping"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ See more examples in the documentation for the [`wrapping_coords2d`](https://doc

## Why not create iterators to the neighbors of a cell?

In an ECS design, indices make more sense than iterators: if a game world or a model landscape has several components, such as color, depth, and fertility, it makes sense to keep each component in its own vector. The simplest approach is to use indices on them. However, I am open to a pull request contributing code for iterators into neighbors.
Indices make more sense than iterators in an ECS design. It's generally more idiomatic to use a `for` loop with indices than iterator chains. if a game world or a model landscape has several components, such as color, depth, and fertility, it makes sense to keep each component in its own vector. The simplest approach is to use indices on them. However, I am open to a pull request contributing code for iterators into neighbors.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

#![doc(html_root_url = "https://docs.rs/wrapping_coords2d/0.1.5")]
#![doc(html_root_url = "https://docs.rs/wrapping_coords2d/0.1.6")]

//! Rust crate to translate between 1D indices and 2D coordinates with wrapping https://crates.io/crates/wrapping_coords2d
//!
Expand Down

0 comments on commit 4f2b718

Please sign in to comment.