In Rust, we have Closures and Type Anonymity concepts that serve two purposes. Closures are responsible for enclosing functions in enclosing environments while Type Anonymity… Read More
Tag Archives: Rust custom-types
Box allows us to store data in the heap contrary to the default scheme of Rust to store as a stack. Box is basically used… Read More
The concept of HashMap is present in almost all programming languages like Java, C++, Python, it has key-value pairs and through key, we can get… Read More
A tuple in rust is a finite heterogeneous compound data type, meaning it can store more than one value at once. In tuples there is… Read More
An enum in Rust is a custom data type that represents data that can be anyone among several possible variants. Each variant in the enum… Read More