Skip to content

Category Archives: Rust

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 have a concept of Higher order functions that passes the function to another function once the variable is stored in another function.… 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
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
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
In Rust, there are anonymous functions that accept closure as parameters. In closures, we are generally not required to annotate types of parameters or return… Read More
Rust is a systems programming language that has some unique features which include warning if there are unused variables or unused functions. To do this,… Read More
In Rust, while coding the focus is mainly on performance, safety, and concurrency. It specifically uses enums like Option<T> and Result<T> for handling errors. Option… 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
In Rust, there are certain conventions that need to be followed when we are creating dependencies. There are dependencies on libraries in Rust. Cargo! is… Read More
In Rust, we have a concept of crates. Crates are basically libraries or packages as defined in other programming languages. Cargo, the rust package management… Read More
In Rust, we have a concept of a lifetime constructor that falls under the ownership category. Rust enforces a certain set of rules through its… Read More
In Rust, we have a concept of the ‘use‘ keyword. This keyword is used for importing or at times renaming items from other different modules… Read More
In Rust, there is a concept of impl trait.  impl Trait is used to implement functionality for types and is generally used in function argument… Read More

Start Your Coding Journey Now!