Rust Installation The first step is to install Rust. First of all, download Rust through rustup which is a command line tool…
slices
-
-
Concise control flow with if let The if let syntax is used to combine if and let which handles the values that…
-
Rust Recoverable Errors Recoverable errors are those errors which are not very serious to stop the program entirely. The errors which can…
-
RefCell<T> Interior mutability pattern is a pattern is used to mutate the reference if we have an immutable reference. RefCell<T> can be…
-
Rust Trait Rust trait is a feature of a Rust language that describes the functionality of each type that it can provide.…
-
Referring to names in different modules When we call the function of a module, then we need to specify the full path.…
-
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…