Rust, Software Development

Rust – Convert Integer to String Or Format Numeric Values

In Rust, we can use the to_string() and format! functions

Read More...

PostgreSQL, Rust, Software Development

Rust – Connect to PostgreSQL

This post is about how to connect to PostgreSQL from Rust.

Read More...

Rust, Software Development

Rust E0384 Cannot Assign Twice To Immutable Variable

By default, variables are immutable in Rust. This design helps up write concurrent codes and avoid common problems that come along with concurrency.

Read More...

Rust, Software Development

Rust – How to Declare and Initialize an Array

In Rust, we declare and initialize arrays at the same time.

Read More...

Rust, Software Development

Rust – How to Create a List

In Rust, we use Vec something akin to java.util.Vector.

Read More...

Rust, Software Development

Rust – How to Create While and For Loops

In Rust, there are three ways to create loops – using loop , while , and for.

Read More...

Rust, Software Development

Rust – How to get Keys and Values from HashMap

In Rust, we can extract the keys and values from a HashMap using the iter()  and keys()  / get()  / unwrap()   functions.

Read More...

Rust, Software Development

Rust – How to read last few lines of a File

In Rust, we can use a crate called rev_lines plus a small codes to display the last few lines of a file in the same order.

Read More...

Rust, Software Development

Rust – How to Display the Contents of Struct

In Rust, we can display the contents of a struct type without explicitly printing out all the fields it has.

Read More...

Rust, Software Development

Rust – How to Compare Struct Instances With Traits

In Rust, we can compare if two struct instances are equivalent and whose respective field values are the same. String Compare Equivalent vs Partial Equivalent Before we proceed, let us

Read More...