Browsing Category: Rust Series

  • All Post
  • Best Practices
  • GenAI
  • General
  • Java
  • QuickFix/J
  • Rust
  • Scala
  • Talk
    •   Back
    • Rust Series
    •   Back
    • Spring Boot
Understanding References and Borrowing in Rust

September 19, 2024/

The blog delves into Rust's concepts of references and borrowing, explaining how they allow functions to access values without transferring ownership. It covers mutable references, the dot operator, and Rust’s borrowing rules, especially in multithreaded scenarios. With a focus on memory safety and efficiency, the content highlights Rust's robust approach to managing references and ensuring safe concurrency.

Understanding Ownership in Rust: A Deep Dive

September 15, 2024/

Rust's ownership model, central to its memory safety, ensures that each value has a single owner, preventing data races and memory leaks. When a value moves to a new variable, the original becomes invalid. Rust provides cloning for deep copies and offers references for more efficient, idiomatic memory management.

Understanding Strings in Rust: A Comprehensive Guide

September 11, 2024/

Rust offers various string types, including &str for immutable slices and String for mutable, heap-allocated text. It also provides platform-specific and C-style strings like OsStr, OsString, CString, and CStr. Rust handles text using UTF-8 encoding, requiring proper methods for character access.

Control Flow in Rust: A Comprehensive Guide

September 7, 2024/

Rust's control flow includes if, loop, while, and for constructs. if expressions return values without semicolons, loop supports infinite iterations, while checks conditions, and for iterates over collections and ranges. Rust’s approach emphasizes type safety and efficient execution.

Understanding Compound Types in Rust

September 4, 2024/

Rust’s compound types include tuples and arrays. Tuples group multiple values of different types and have a fixed size, while arrays hold multiple values of the same type and are also fixed in length. Both types are essential for organizing and managing data efficiently in Rust.

Exploring Scalar Types in Rust: A Detailed Guide

August 31, 2024/

Rust's scalar types include integers, floating-point numbers, booleans, and characters. Integers are signed or unsigned, floats have 32 or 64-bit precision, and booleans represent true/false. Characters are 4-byte Unicode values. Understanding these types is key to writing efficient and safe Rust code.

Understanding Functions in Rust: A Comprehensive Guide

August 28, 2024/

Functions in Rust, declared with the fn keyword, follow snake case naming and can have typed parameters. The last expression without a semicolon is automatically returned, making the code concise. Flexible declaration order and clear return types contribute to writing efficient, maintainable Rust code essential for robust applications.

Introduction to Rust: A Journey into Safe and Fast Systems Programming

August 25, 2024/

Rust is a modern systems programming language known for its speed, memory safety, and thread safety. It combines the performance of low-level languages like C++ with the ease of high-level languages like Python. Created by Graydon Hoare at Mozilla, Rust addresses C++'s shortcomings, making it ideal for projects like Firefox Quantum. Rust’s package manager, Cargo, simplifies project management, while features like immutability, shadowing, and strict compile-time checks ensure safe and efficient code...

About Me

Hello, I'm Prabhat Kashyap

Unreserved in curiosity and driven by craft, Prabhat blends technical depth with quiet ambition—always improving, always building.

Popular Posts

  • All Post
  • Best Practices
  • GenAI
  • General
  • Java
  • QuickFix/J
  • Rust
  • Scala
  • Talk
    •   Back
    • Rust Series
    •   Back
    • Spring Boot

Featured Posts

  • All Post
  • Best Practices
  • GenAI
  • General
  • Java
  • QuickFix/J
  • Rust
  • Scala
  • Talk
    •   Back
    • Rust Series
    •   Back
    • Spring Boot

Categories

Edit Template

Guided by solid engineering principles, Prabhat builds precise, reliable systems with thoughtful, decisive execution.

© 2026 Prabhat.Dev