الانتقال إلى المحتوى الرئيسي
الأكاديمية
مبتدئ حيّ الكود

Rust

برمجة أنظمة سريعة وآمنة في التعامل مع الذاكرة.

Rust gives you the speed of C and C++ without a garbage collector, and a compiler that stops whole families of memory bugs before your program ever runs. Parts of Firefox, Android, Windows and the Linux kernel are written in it, and developer surveys have named it the most admired language for years.

This intro course starts with Cargo and your first program, then teaches the ideas that make Rust different: ownership, borrowing, structs and enums, Option and Result, and the collections and iterators you use every day. The last module moves on to traits and generics, lifetimes, modules and tests, and threads. It uses the 2024 edition, every program in it was compiled and run, and every compiler error you see is the compiler's real message.

الدروس
١٤
الوقت
٢ ساعة
المستوى
مبتدئ

دروس هذا المسار بالإنجليزية حاليًا.

  • البرونز متاحة
  • الفضة متاحة
  • الذهب مقفلة

مستعد لإثبات نفسك؟

ثلاثة امتحانات في انتظارك: البرونز والفضة والذهب.

إلى الامتحانات

ما ستتمكن من فعله

  • Create, build and run projects with Cargo
  • Write functions, loops and decisions in Rust's expression style
  • Explain ownership, moves and borrowing, and fix the errors they cause
  • Model data with structs, enums and match
  • Handle missing values and failures with Option, Result and ?
  • Process lists and lookups with Vec, HashMap and iterators

الرحلة

  1. ١
    الوحدة ١

    First steps

    Cargo, your first program, variables and types, functions and control flow.

    ٠ / ٤
  2. ٢
    الوحدة ٢

    Ownership and types

    The ideas that make Rust safe: ownership, borrowing, your own types, Option, Result and collections.

    ٠ / ٦
  3. ٣
    الوحدة ٣

    Next steps

    Traits, generics, lifetimes, modules, tests and threads: the road to real-world Rust.

    ٠ / ٤

التنقل السريع