Rust’s Borrowing and Reference Laws

Hi everyone. Before that, I wrote a post called Ownership Concept in Rust. Today I’ll try to explain some of the features called borrowing and references. I called them laws in the title. Before starting, I’ll create a project with cargo; cargo new references_and_borrowing cd references_and_borrowing Introduction We’ve discussed the ownership concept in the last …

Ownership Concept in Rust

Hi everyone. Before that, I wrote a post called Control Flow Statements in Rust. Today we will see the ownership concept in Rust. Before I get started I have to say that it was really hard for me to understand. Before starting, I’ll create a project with cargo; cargo new understanding_ownership cd understanding_ownership Introduction Ummm, …

Control Flow Statements in Rust

Hi everyone. Before that, I wrote a post called Playing with Functions in Rust. Today I’ll try to explain control flow statements in Rust Before starting, I’ll create a project with cargo; cargo new control_flow cd control_flow Introduction Rust has control statements like if expressions and loops. Mostly you’ll see if expressions and loops in …

Playing with Functions in Rust

Hi everyone. Before that, I wrote a post called A Trip to Data Types in Rust. Today I’ll try to explain functions in Rust. Before starting, I’ll create a project with cargo; cargo new functions cd functions Introduction Functions are common in the Rust programming language. We’re already creating a function for each program. We’re …

A Trip to Data Types in Rust

A Trip to Data Types in Rust Hi everyone. Before that, I wrote a post called Understanding Variables and Mutability in Rust. Today we’ll review Data Types in Rust. In this small story, we’ll see scalar and compound data type subsets. Before starting, I’ll create a project with cargo; cargo new data_types cd data_types Introduction …