Adventures in Rust 0.9: Arrays and JSON

I wanted to try Rust last year around this time but never got around to it. My friend’s taking a look now and so why not actually start learning the language? he mentioned having some issues with arrays, and I can barely understand the different pointer types (especially since they’ve changed which ones are available between Rust 0.9 and the latest commit).

Learning AngularJS: FREE newsletter: subscribe now

So here’s some code snippets of Rust 0.9. I’ve found it hard to find good tutorials on the language and the docs are good but they’re mostly API docs, not tutorials or manuals

Using finite-sized mutable vectors (kinda like C/C++ arrays) in Rust:

Encoding and decoding objects to/from JSON. Also some basic messing around with TreeMap: