Introduction

Learn Rust by Examples is a collection of examples for understanding Rust concepts.

  • Hello World - Print Hello World! program.
  • Primitive Type - Primitive types in the Rust language.
  • Function - A function is a block of code that represents a single task. Write it once and call it multiple times.
  • Trait - A trait is a collection of methods.
  • PhantomData