p810 / rust-exercises

A collection of exercises that I'm doing alongside Rust's book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-exercises

A collection of exercises that I'm doing alongside Rust's official book, The Rust Programming Language.

Table of Contents

Directory Chapter Purpose
branches/ 3.5 Control Flow Playing around with control structure syntax
enums/ 6 Enums and Pattern Matching Explores enums, match, and if let
functions/ 3.3 Functions Shows how Rust handles implicitly returned values
hello_cargo/ 1.3 Hello, Cargo! A mixture of chapters 1.3 and 2, where I tried my hand at a range of functionality (like enums, Option, etc.) and got acquainted with cargo. Doesn't work because I decided to wait until I got further into the book to work with some of these concepts.
hello_world/ 1.2 Hello, World! A simple hello world app
stack_and_heap/ 4 Understanding Ownership Explores concepts relating to memory management: Ownership, references, moving pointers between variables, cloning data, and the difference between the stack and heap
structs/ 5 Using Structs to Structure Related Data Introduces structs, impl and methods, associated functions, etc.
types_and_structures/ 3.5 Control Flow Demonstrates tuples, arrays, and loops
variables/ 3.1 Variables and Mutability A brief introduction to variable assignment and mutability in Rust
library/ 7 Managing Growing Projects with Packages, Crates, and Modules Goes over some of the semantics around how code is organized in Rust, scope resolution, etc.
collections/ 8 Common Collections Introduces some of Rust's compound data structures, collections, which can be used to store multiple values on the heap

About

A collection of exercises that I'm doing alongside Rust's book


Languages

Language:Rust 100.0%