becheran / grid

Two dimensional grid data structure
MIT License
82 stars 27 forks source link

error[E0369]: binary operation `==` cannot be applied to type `grid::Grid<{float}>` #50

Closed jmole closed 6 months ago

jmole commented 6 months ago

Sorry if this is due to my lack of understanding of Rust, I'm still learning the language.

assert_eq(vec![1], vec![1]); // works
assert_eq(vec![1.0], vec![1.0]); // works
assert_eq(grid![[1]], grid![[1]]); // works
assert_eq(grid![[1.0]], grid![[1.0]]); // doesn't work