Ownership in the Rust Language

One of the very distinctive features that makes Rust stand out from other languages is the way it does memory management.
Memory management in C happens by either declaring a variable or by allocating a chunk of space at runtime. That sotred data can then be utilized via explicit function calls. So, basically, the control resides with the developer which may result in error-prone code. In languages like Java, there is a concept known as the garbage collector. A garbage collector is a process which monitors the program for any memory leak and takes care of it. The memory is said to be eligible for garbage collection if there remains no reference to it or if it’s in the Island of Isolation. A garbage collector is always running in the background and can not be explicitly controlled to free memory, which is where things may get a little out of hand.

Link: https://dzone.com/articles/ownership-in-the-rust-language?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev