Rust Variables, Mutability, Constants and Shadowing: Complete Guide
Learn how Rust variables work, why values are immutable by default, how mut works, how constants differ from variables, what shadowing means, and how...
Melochip Library
Practical guides and expert insights for building, securing, and operating modern technology.
Explore the library
35 results
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...
Learn Rust functions, parameters, return values, expressions, if/else, loop, while, for, ranges, break, continue and practical control-flow patterns w...
Learn Rust ownership step by step with stack and heap concepts, moves, copies, clones, scope, function ownership, return values and Drop behavior.
Learn Rust borrowing and references with immutable references, mutable references, borrow rules, dereferencing, non-lexical lifetimes and dangling-ref...
Learn Rust String and &str types, ownership, UTF-8, string slices, indexing rules, iteration, conversion and practical text-processing patterns.
Learn Rust structs and methods with named structs, tuple structs, unit structs, impl blocks, associated functions, ownership, borrowing and practical...
Learn Rust enums, Option, match, if let, let else, enum data, exhaustive matching and practical state-modeling patterns with examples.
Learn systems and embedded Rust concepts including no_std, core, alloc, bare-metal targets, memory-mapped I/O, embedded-hal, interrupts and firmware s...