Rust ownership is a fundamental part of the language.

I’ve summarized the basic concepts here as a learning exercise for myself.

I’m sharing this to gather feedback, corrections, and suggestions.

Feel free to offer improvements wherever needed!

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    As someone learning Rust, I’ll say that I appreciate the “advice” at the top because cloning is often tempting to use but - even though that’s usually okay - it doesn’t help one to practice the rust-specific ways of handling scope, ownership, and borrowing.