Rust की बुनियाद
पहले प्रोग्राम से लेकर वेरिएबल, टाइप, कंडीशन, लूप, स्ट्रिंग, वेक्टर और फ़ंक्शन तक, हर विषय के बाद एक चैलेंज के साथ।
- 17 पाठ
- 31 चैलेंज
- लगभग 13 घंटे
- शुरुआत 5
- निर्णय लेना 2
- लूप 2
- स्ट्रिंग और टेक्स्ट 2
- कलेक्शन 3
- + 2 और मॉड्यूल
Rust के छोटे पाठ, जिनका कोड आप ब्राउज़र में चला सकते हैं। मूल बातों से शुरू करके एक पाथ पूरा करें, फिर चैलेंज से अभ्यास करें।
एक पाथ अपनाएँ: पहले छोटे पाठ, फिर एक चैलेंज जिससे पता चले कि आप यह विचार खुद लागू कर सकते हैं।
पहले प्रोग्राम से लेकर वेरिएबल, टाइप, कंडीशन, लूप, स्ट्रिंग, वेक्टर और फ़ंक्शन तक, हर विषय के बाद एक चैलेंज के साथ।
Move, रेफ़रेंस, slice, lifetime और स्मार्ट पॉइंटर: वे विचार जो garbage collector के बिना Rust को मेमोरी-सुरक्षित रखते हैं।
struct और enum से डेटा मॉडल करें, पैटर्न मैच करें, Option और Result संभालें, और trait व generics से व्यवहार साझा करें।
Hash map, iterator, closure और module, फिर thread, channel और साझा स्टेट।
दस छोटे अभ्यास: FizzBuzz, Fibonacci, अभाज्य संख्याएँ, स्ट्रिंग, बाइनरी सर्च और बैंक खाता।
Write your first Rust program and learn what fn main and println! do.
पाठ देखें →Declare variables with let, allow changes with mut, and use constants and shadowing.
पाठ देखें →Work with integers, floating-point numbers, booleans and characters, and convert between them.
पाठ देखें →Use arithmetic, comparison and logical operators, and see how integer division works.
पाठ देखें →Create, grow, search and split text with Rust's two string types.
पाठ देखें →Choose what runs with if, else if and else, and use if as an expression.
पाठ देखें →Repeat code with for over a range, while with a condition, and loop with break.
पाठ देखें →Group values with tuples and store a fixed number of items in an array.
पाठ देखें →Learn the rule behind Rust's memory safety: every value has one owner.
पाठ देखें →