Skip to content

Tag Archives: Rust-basics

Rust uses configurational conditional (cfg) checks to differentiate between the environment that is used to run Rust programs.  This is done by two attributes:  cfg… Read More
In Rust, Closures can be taken as input for the parameters. Closures are functions that wrap up functions for reusable purposes, which help capture variables… Read More
In Rust, we can capture variables via Closures. Closures are anonymous functions that help us in saving variables or pass arguments to other functions. Closures… Read More
In Rust,  there are situations where we encounter situations where there is a dependency on other libraries. The rust ecosystem has a solution to it… Read More
A literal is a source code that represents a fixed value and can be represented in the code without the need for computation. The compiler… Read More
In Rust, we use macros to print formatted texts in the editor. Macros provide functionality similar to functions but without the runtime cost. Print statements… Read More
Random number generation is an important feature in programming to design complex and automated programs. We can generate random numbers in rust with the help… Read More
In Rust programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. Comments are statements that are not… Read More
As Rust Ownership rules say one owner at a time but there might some cases where we need to perform an action on data without… Read More
String data type makes a very important part of any programming language. Rust handles strings a bit differently from other languages.   The String data… Read More
Constants are the value that can not be changed after assigning them. If we created a constant, then there is no way of changing its… Read More
AN Array in Rust programming is a fixed-sized collection of elements denoted by [T; N] where is T is the element type and N is… Read More
Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical… Read More
Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical… Read More
Branching with if-else in rust also is similar to other languages. Just the difference is the way of writing(syntax). Here the condition doesn’t need to… Read More

Start Your Coding Journey Now!