Rust, Software Development

Rust – Drop Trait To Run Codes After Instance is Destroyed

In Rust, we can run codes when an instance is about to be destroyed. This post briefly demonstrates how to perform just that.

Read More...

Rust, Software Development

How to Install Rust on Windows 10 The Easy And Painless Way

This post shows how to install Rust on Windows 10. There are two ways to do this – through rustup-init.exe  and curl within the Windows Subsystem for Linux. This post

Read More...

PostgreSQL, Rust, Software Development

Rust – Connect to PostgreSQL Database Using Crate

Is this your sudden foray into Rust? Although not totally for beginners, this post shows how to connect to a PostgreSQL database from Rust. Note that we have updated the

Read More...

Rust, Software Development

Rust – How to check for NULL values

Rust does not support NULL; therefore, we don’t perform NULL checks on values. It does not even have keywords for NULL. However, it provides an enum Option that we can

Read More...

Rust, Software Development

Rust – Convert Integer to String Or Format Numeric Values

We can use the Rust functions to_string(), and format functions to format or convert integer values to string values. This post shows how to use these functions on each of

Read More...

Rust, Software Development

Rust – Check if key exists in HashMap Examples

This post shows how to check if a key exists in a HashMap in Rust. As we know, Rust has the HashMap struct, which is part of its Collections library

Read More...

Rust, Software Development

Rust – How to get Keys and Values from HashMap

In Rust, we can store key and value pairs using HashMap. This post shows how to store and extract the keys and values from a HashMap using the functions iter(),

Read More...

Rust, Software Development

Rust – How to Declare and Initialize an Array

Rust is a strange language for some. However, it is a fun programming language to play (or work) with. When we need arrays in Rust, we declare and initialize an

Read More...

Rust, Software Development

Rust – How to create Two-Dimensional Array Example

An array is an important construct in most programming languages. This post shows how to create one- and two-dimensional arrays in Rust. Although Rust has different ways of creating arrays,

Read More...

Rust, Software Development

Rust – How to Create a List Using Vec, VecDeque, and LinkedList

In Rust, we may refer to any list as a sequence of items. A list can be fixed size like an array or resizeable collection types – Vec, VecDeque, and

Read More...