Rust Collections: Vec, HashMap and HashSet Explained with Examples
Learn Rust collections with practical Vec, HashMap and HashSet examples, ownership rules, iteration, updates and a hands-on mini project.
Melochip Library
Practical guides and expert insights for building, securing, and operating modern technology.
Explore the library
25 results
Learn Rust collections with practical Vec, HashMap and HashSet examples, ownership rules, iteration, updates and a hands-on mini project.
Learn robust Rust error handling with Result, panic!, unwrap, expect, error propagation, the question mark operator and custom error patterns.
Learn Rust generics with generic functions, structs, enums, methods, type parameters, multiple generic types and monomorphization examples.
Learn Rust traits and trait bounds with implementations, default methods, impl Trait, where clauses, multiple bounds and practical abstraction example...
Learn Rust lifetimes, lifetime annotations, elision rules, lifetime parameters in functions and structs, 'static and how lifetimes prevent dangling re...
Learn how to install Rust and Cargo on macOS, Linux, and Windows, compile and run Rust programs, create Cargo projects, add dependencies, test, lint,...
Learn Rust syntax from the ground up with Hello World, main(), println!, comments, statements, expressions, blocks, macros, formatting, Cargo commands...
Learn how Rust variables work, why values are immutable by default, how mut works, how constants differ from variables, what shadowing means, and how...
Learn Rust scalar and compound data types, integers, floating-point numbers, booleans, chars, tuples, arrays, type annotations, inference, casting, pa...