A Slice of Rust: Working with the Slice Type

Hi everyone. Before that, I wrote a post called Rust’s Borrowing and Reference Laws. Today I’ll try to explain the slice type in Rust Before starting, I’ll create a project with cargo; cargo new slice_type cd slice_type Introduction If you worked with languages like Python, you are familiar with slices. Slices don’t have ownership in … Read more

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 … Read more

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, … Read more

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 … Read more

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 … Read more