|  | 
|  | 1 | +# Rust Crash Course (Loops, Custom Types, and Errors) | 
|  | 2 | + | 
|  | 3 | +Author: methylDragon  | 
|  | 4 | +Contains a syntax reference for Rust!  | 
|  | 5 | +I'll be adapting it from several sources that will be credited in the introduction | 
|  | 6 | + | 
|  | 7 | +------ | 
|  | 8 | + | 
|  | 9 | +## Pre-Requisites | 
|  | 10 | + | 
|  | 11 | +**Assumed knowledge (This is a Rust crash course, not a basic coding tutorial)** | 
|  | 12 | + | 
|  | 13 | +- How **variables, loops, conditionals, etc**. work (Basic coding fundamentals will help a lot!) | 
|  | 14 | +- Linux (**Terminal/Console proficiency**) (We're going to need to compile our stuff) | 
|  | 15 | +- Gone through the all preceding parts of the tutorial | 
|  | 16 | + | 
|  | 17 | +### Good to know | 
|  | 18 | + | 
|  | 19 | +- Other systems programming language knowledge (e.g. C++) | 
|  | 20 | + - It'll help with appreciating the benefits of Rust! | 
|  | 21 | + | 
|  | 22 | +- If you have knowledge of computation structures like variables, functions, OOP, etc. it'll be easier | 
|  | 23 | + | 
|  | 24 | + | 
|  | 25 | + | 
|  | 26 | +## Introduction | 
|  | 27 | + | 
|  | 28 | +Now that we know what types are, and what tools Rust affords us, we can start getting funky with the next few steps: | 
|  | 29 | + | 
|  | 30 | +- Loops (`for`, `while`, etc.) | 
|  | 31 | +- Custom Types (`structs`, `enums`, type aliases) | 
|  | 32 | +- Error handling | 
|  | 33 | + | 
|  | 34 | + | 
|  | 35 | + | 
|  | 36 | +## Rust Syntax Reference | 
|  | 37 | + | 
|  | 38 | +### Loops (`loop`, `while`, `for`) | 
|  | 39 | + | 
|  | 40 | + | 
|  | 41 | + | 
|  | 42 | + | 
|  | 43 | + | 
|  | 44 | + | 
|  | 45 | +``` | 
|  | 46 | + . . | 
|  | 47 | + . |\-^-/| .  | 
|  | 48 | + /| } O.=.O { |\ | 
|  | 49 | +``` | 
|  | 50 | + | 
|  | 51 | +  | 
|  | 52 | + | 
|  | 53 | +------ | 
|  | 54 | + | 
|  | 55 | + [.png)](https://www.buymeacoffee.com/methylDragon) | 
|  | 56 | + | 
0 commit comments