Ownership

Ownership, An exciting concept of Rust (Part-2)

Reading Time: 3 minutes Hello Readers ! We already read about what is ownership and how memory allocation is done. But for completely understanding ownership, we should know what is borrowing and what are references. References and Borrowing The problem in this code is that we have to return the String to the calling function. So we can still use the String after the call to calculate_length because the Continue Reading

Ownership: An exciting concept of Rust(Part-1)

Reading Time: 4 minutes Ownership, An exciting concept of Rust and it enables Rust to make memory safety guarantees without needing a garbage collector. Therefore, it’s important to understand how ownership works in Rust. While running all the programs manage the way they use computer’s memory. Some languages have garbage collection, in other languages, the programmer must explicitly allocate and free the memory. On the other hand Rust uses Continue Reading

Memory Management in Rust: Ownership

Reading Time: 5 minutes Do you know any programming language which allows memory management or you want to manage the memory on your own, maybe because you just don’t want to rely on the garbage collector, Rust allows us to do so? In this blog I am going to tell how you can actually manage your memory on an abstract level . Excited!!? Here we go…..