Box<T> Box<T> is a smart pointer that points to the data which is allocated on the heap of type T. Box<T> allow…
intro
-
-
Filesystem A module forms a hierarchical structure so that the project becomes more understandable. Rust module system is used to split the…
-
Rust Unrecoverable Errors with panic! Unrecoverable Error is an error which is detected, and the programmer can not handle it. When such…
-
Deref<T> Deref<T> trait is used to customize the behavior of dereference operator (*). If we implement the Deref<T> trait, then the smart…
-
What is a vector? A vector is a single data structure which enables you to store more than one value next to…
-
Drop trait Drop trait is used to release the resources like files or network connections when the value goes out of the…
-
Rust Modules A module is a namespace which contains the definitions of the functions or its types. A module is a collection…
-
While loop The ‘while-loop’ is a conditional loop. When a program needs to evaluate a condition then the conditional loop is used.…
-
Rust Ownership Understanding Ownership Ownership is the unique feature that Rust programming language offers and provides the guarantee of memory safety without…
-
Match Operator The match operator allows us to compare a value against a series of patterns, and executes the code whenever the…