cudi.dev

Lifetimes in Rust Explained with Examples

Learn how Rust uses lifetimes to prevent dangling references and ensure safe borrowing through examples

Borrowing and References in Rust Explained

This insightful article provides a comprehensive overview of references and borrowing in Rust. It discusses the borrowing rules, mutable and immutable references, and offers a concise introduction to lifetimes in Rust.

Ownership in Rust Explained

This explains the ownership system in Rust very simply and comprehensively. It begins by explaining the allocation and deallocation from the stack and heap, which provides a foundation for understanding the ownership system.

Rust Number Types Explained

A number in Rust can either be an integer or a float. Integers in Rust may either be signed or unsigned. Signed integers as the name implies are integers that carry a sign. They can be negative, positive, or zero.