hackquest logo
 

Introduction To Rust

This is the first introductory course on programming in Rust.

Language

Rust

Total Length

5.0h

Part of Learning Track

Build on Solana + 1

What You’ll Learn

Introduction to Rust's ownership Introduction to compound data types Introduction to flow control Introduction to error handling and macros
Ownership
Compound Data Type
Macro

Syllabus

Rust Basics

Rust variables, basic data types, functions, statements, and expressions

Rust Ownership

Rust Ownership and Borrowing

Compound Data Type

Rust String, tuple, struct, enum, array and HashMap

Control Flow and Pattern Matching

Rust Control Flow、 Pattern Matching、Method、Generic Type、Trait

Lifetimes

Rust’s dangling references, Lifetimes

Error Handling and Macro

1. Rust’s error handling 2. Overall introduction to macros 3. Declarative macro 4. Process macros (derived macros & attribute macros & functional macros) 5. Rust, project structure