Ronie
Stochastic thoughts

Wrapping my head around Rust (Part 1)

Rust is a very interesting language. I’m trying to learn it to speed up critical parts in Ruby, also to process massive amounts of data.

However, it has odd concepts to anyone coming from other languages. I’m trying to get how it works. One of the worst things so far is understanding what the “cannot move out of borrowed content” error means.

So far, I learned:

Corolary: iterators are disposable. Create them just before use them, and let them behind.