There no way to define an indexing operation in @rustlang which supports more than one index, i.e. you cannot have `video_buffer[x, y] = colour`. You can have `video_buffer[y][x] = colour`, though (notice the reversed coordinates order).
-
-
True but syntax is clumsy :)
-
Good luck with buffer[x, y] syntax in C :) For video buffers in Rust I wrote imgref crate: https://crates.rs/crates/imgref (it does use [(x,y)])
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.