Skip to content

Latest commit

 

History

History
191 lines (175 loc) · 7.04 KB

README.md

File metadata and controls

191 lines (175 loc) · 7.04 KB

2024-MatKor-Rust-Blog

2024-MatKor-Rust-Blog is the material(lecture notes, examples and assignments) repository for learning Rust programming language and making a simple blog at Korea University Club 'MatKor' in 2024 Spring.

Contents

  • Week 0 (3/18) [Lecture]
    • Introduction
  • Week 1 (3/18) [Assignment] [Solution]
    • Hello, World
      • What is Rust?
      • Benefits of Rust
      • Playground
    • Types and Values
      • Hello, World
      • Variables
      • Values
      • Arithmetic
      • Type Inference
    • Control Flow Basics
      • if Expressions
      • Loops
      • break and continue
      • Blocks and Scopes
      • Functions
      • Macros
    • Tuples and Arrays
      • Arrays
      • Tuples
      • Array Iteration
      • Patterns and Destructuring
    • Assignment #1
  • Week 2 (3/25) [Assignment] [Solution]
    • References
      • Shared References
      • Exclusive References
      • Slices: &[T]
      • Strings
    • User-Defined Types
      • Named Structs
      • Tuple Structs
      • Enums
      • Static
      • Const
      • Type Aliases
    • Pattern Matching
      • Matching Values
      • Destructuring
      • Let Control Flow
    • Methods and Traits
      • Methods
      • Traits
      • Deriving
    • Assignment #2
  • Week 3 (4/1) [Assignment] [Solution]
    • Generics
      • Generic Functions
      • Generic Data Types
      • Generic Traits
      • impl Trait
    • Standard Library Types
      • Standard Library
      • Documentation
      • Option
      • Result
      • String
      • Vec
      • HashMap
    • Standard Library Traits
      • Comparisons
      • Operators
      • From and Into
      • Casting
      • Read and Write
      • Default, struct update syntax
      • Closures
    • Assignment #3
  • Week 4 (4/8) [Assignment] [Solution]
    • Memory Management
      • Review of Program Memory
      • Approaches to Memory Management
      • Onwership
      • Move Semantics
      • Clone
      • Copy Types
      • Drop
    • Smart Pointers
      • Box
      • Rc
      • Trait Objects
    • Borrowing
      • Borrowing a Value
      • Borrow Checking
      • Interior Mutability
    • Lifetimes
      • Lifetime Annotations
      • Lifetime Elision
      • Struct Lifetimes
    • Assignment #4
  • Week 5 (4/29) [Assignment]
    • Iterators
      • Iterator
      • IntoIterator
      • FromIterator
    • Modules
      • Modules
      • Filesystem Hierarchy
      • Visibility
      • use, super, self
    • Testing
      • Test Modules
      • Other Types of Tests
      • Compiler Lints and Clippy
    • Error Handling
      • Panics
      • Try Operator
      • Try Conversions
      • Error Trait
      • thiserror and anyhow
    • Unsafe Rust
      • Unsafe
      • Dereferencing Raw Pointers
      • Mutable Static Variables
      • Unions
      • Unsafe Functions
      • Unsafe Traits
    • Assignment #5
  • Week 6 (TBA)
    • Threads
    • Channels
    • Send and Async
    • Shared State
    • Async Basics
    • Control Flow
    • Pitfalls
    • Assignment #6
  • Week 7 (TBA)
    • Closures
    • Macros
    • Assignment #7
  • Week 8 (TBA)
    • Foreign Function Interface (FFI)
    • Rust and WebAssembly
    • Assignment #8

References

How To Contribute

Contributions are always welcome, either reporting issues/bugs or forking the repository and then issuing pull requests when you have completed some additional coding that you feel will be beneficial to the main project. If you are interested in contributing in a more dedicated capacity, then please contact me.

Contact

You can contact me via e-mail (utilForever at gmail.com). I am always happy to answer questions or help with any issues you might have, and please be sure to share any additional work or your creations with me, I love seeing what other people are making.

License

The class is licensed under the MIT License:

Copyright © 2024 Chris Ohk.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.