This is the course header. This will be added on top of every page. Go to DoDAO.io to know more.
This chapter introduces the high level memory management and safety with ownership and borrowing.
- Memory Allocation and Memory Types
- Stacks
- Heaps
- Memory alignment
- Std::mem modules
- How Rust’s Memory Mode is different from others
- Ownership
- What is Ownership in rust
- What are Scopes
- Move and Copy Semantics
- Duplicating Types via Traits
- Copy
- Clone
- Ownership and Memory Safety
- Dangling Pointers
- Double Free
- Memory Leaks
- Borrowing
- Borrowing rules
- References and multiple references
- Dangling References
- Method types using borrowing
- Lifetimes
- Parameters
- Lifetime rules
- Multiple lifetimes
- Lifetime in impl blocks