tiles[i][j]
instead of tiles[[i][j]]
result
is Vec<Vec<bool>>
, tiles
is Array2<Tile>
, im transmutating bool
into u8
u8
number, it will give same errortiles[[i,j]]
instead of tiles[[i][j]]
(edited) let mut total_game_types: Vec<(String, usize)> = total_game_types.into_iter().collect();
total_game_types.sort_by_key(|x| Reverse(x.1));
[build]
rustflags = ["-C", "target-cpu=native"]
str_format(aBuf, sizeof(aBuf), "%s", pStr)
is equivalent to str_copy(aBuf, pStr, sizeof(aBuf))
. Using str_copy
is more readable and also more efficient as there is no overhead from parsing the format string and from passing varargs.