Skip to content

Category Archives: Rust

Drop trait lets us customize what happens when a value is about to go out of scope. Drop trait is important to the smart pointer… Read More
Operators in general are used to perform operations on values and variables. These are standard symbols used for the purpose of logical and arithmetic operations.… Read More
A trait tells the Rust compiler about functionality a particular type has and can share with other types. Traits are an abstract definition of shared… 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
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
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
Unrecoverable errors are those errors which as the name suggests can not be handled by a programmer. When any unrecoverable error occurs the end result… 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
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
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
Match Operator is a powerful operator which lets you match a particular value with a range of values and execute some operations or code for… Read More
The basic difference between conventional if-else and if let is that if let uses one pattern that needs to be matched to an expression also… 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
Slice is a data type that does not have ownership. Slice references a contiguous memory allocation rather than the whole collection. Slices are also present… Read More